PDA

View Full Version : Macro for drop down menu based message box



aneshdas
12-17-2013, 04:52 AM
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.

Kenneth Hobs
12-17-2013, 08:14 AM
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.