+ Reply to Thread
Results 1 to 2 of 2

Dropdown List selection action checks cell value

  1. #1
    Registered User
    Join Date
    10-20-2011
    Location
    World
    MS-Off Ver
    Excel 2003
    Posts
    1

    Post Dropdown List selection action checks cell value

    Hi,

    I have multiple dropdown list created from data validation. When a user selects value in dropdown list there are two cells (G9 and E8) down below in the table, I want to check those cell values. And I do not know how to link this method to dropdown list.

    I have:
    Private Sub dropdown2_Change(ByVal Target As Range)
    If Range("G9").Value > Range("E8").Value Then alert ("Warning")
    End If
    End Sub

    Your help will be really appreciated.

    Thanks.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Dropdown List selection action checks cell value

    Hi friend, welcome to the forum. You need to EDIT the post above, click GO ADVANCED, then highlight the code in your post, then click the # icon to wrap it in code tags. It's a forum rule. Like so:

    Please Login or Register  to view this content.
    In that example, change the B1 to the address of the cell with the drop down in it you want to trigger this "check".
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1