Consulting

Results 1 to 2 of 2

Thread: Macro for drop down menu based message box

  1. #1
    VBAX Newbie
    Joined
    Dec 2013
    Posts
    5
    Location

    Macro for drop down menu based message box

    Friends,

    Good day to everyone !

    I need a macro code for the following problem.

    I have an excel sheet and on that I am using drop down menu in Cell U8 to U357 (Data Validation). In this work sheet, If I selected the value "A" from the drop down menu, I want to Display a message box with a message " Please enter the absent mode" and once the user clicked OK on the message box automatically the selection should go to its parallel "V" cell.

    Eg: As soon as I selected "A" from drop down menu in cell U10, the " Please enter the absent mode" message should appear with an OK button and after clicking the OK the cursor should select the "V10" Cell where the absent mode has to enter. I will be more happy if only the "V10" cell is active and the user can do anything in other cells Only after entering any value in the "V10" cell.

    Kindly help me with a macro for this and thanks in advance.

  2. #2
    VBAX Guru Kenneth Hobs's Avatar
    Joined
    Nov 2005
    Location
    Tecumseh, OK
    Posts
    4,956
    Location
    Use the sheet's Change event to trigger what you want. Search for the term Intersect() to see examples. Use a Userform or Application.Inputbox to force data entry to a specific cell. Use ActiveCell.Offset(0,22).value to poke the result of the userform textbox control or application.inputbox.

Tags for this Thread

Posting Permissions

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