Results 1 to 3 of 3

Thread: [RESOLVED] EXCEL: Pop-Up Box when value goes over or below a certain value.

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2007
    Posts
    7

    Resolved [RESOLVED] EXCEL: Pop-Up Box when value goes over or below a certain value.

    Hello again,

    I need to creat a pop up box to warn a user that a value has gone below a certain point.

    I also need to create one that warns the user when value is over a certain value.

    Any ideas welcome

  2. #2
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: EXCEL: Pop-Up Box when value goes over or below a certain value.

    if you mean a message box then use the following code...

    VB Code:
    1. Private Sub Command1_Click()
    2. certainvalue = 6
    3. checkvalue = 5
    4. If checkvalue < certainvalue Then
    5.     MsgBox "The value is less than " + Str(certainvalue)
    6. End If
    7. End Sub
    same applies for 'over a certain value'
    VB Code:
    1. Private Sub Command1_Click()
    2. certainvalue = 5
    3. checkvalue = 6
    4. If checkvalue > certainvalue Then
    5.     MsgBox "The value is Greater than " + Str(certainvalue)
    6. End If
    7. End Sub

    you can modify the code as per your requirements...
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2007
    Posts
    7

    Re: EXCEL: Pop-Up Box when value goes over or below a certain value.

    Many Thanks, I appear to be getting the hang of this now!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width