+ Reply to Thread
Results 1 to 5 of 5

Message box with VBA when cell selected AND other cell equals "X"

  1. #1
    Registered User
    Join Date
    02-05-2011
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    31

    Message box with VBA when cell selected AND other cell equals "X"

    Hi guys, easy one for you. Just need for there to be a pop up box with the message "Warning" whenever I select cell A1 where cell A2 ="X". e.g. if cell A2 does equals anything but "X" then there will be no warning message

    Thanks in advance

  2. #2
    Forum Contributor
    Join Date
    04-03-2012
    Location
    Washington State
    MS-Off Ver
    Excel 365
    Posts
    340

    Re: Message box with VBA when cell selected AND other cell equals "X"

    I think you are looking for something like this, placed in SHEET1 or whatever sheet you need:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-05-2011
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    31

    Re: Message box with VBA when cell selected AND other cell equals "X"

    Quote Originally Posted by Nu2Java View Post
    I think you are looking for something like this, placed in SHEET1 or whatever sheet you need:

    Please Login or Register  to view this content.
    Thanks Nu2Java, it's almost there.

    I need the message box to appear when the cell A1 is selected. e.g. if cell A2 = "X" and I click on A1, I will get the message box at that point.

    Sorry for not explaining better

    Thanks

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Message box with VBA when cell selected AND other cell equals "X"

    you need the SelectionChange event and not the Change event
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  5. #5
    Registered User
    Join Date
    02-05-2011
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    31

    Re: Message box with VBA when cell selected AND other cell equals "X"

    Quote Originally Posted by JosephP View Post
    you need the SelectionChange event and not the Change event
    Simple, thanks!

+ 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