I would like to direct, by way of a MsgBox, the user to select a pull-down cell and obtain a selection and then continue the program operation. How and what VBE coding will accomplish this?
Create a userform. End one macro with calling the userform. When they enter their input, call a new macro which passes the input from the userform as an argument.
Another approach: When you run this macro, it will prompt the user to make a selection. When you click "OK", you have 3 seconds to make a selection and then the macro will display a message box with "OK". Change the '3' to the number of seconds you want to allow and replace the line of code that displays "OK" with your code.
Code:
Sub x()
Dim WaitTime As Date
MsgBox "Make a selection in the drop down list."
WaitTime = Now() + TimeValue("00:00:03")
While Now() < WaitTime
DoEvents
Wend
MsgBox "OK"
End Sub
We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel
Which adblocker are you using?
Disable AdBlock
Follow these easy steps to disable AdBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the icon in the browser’s toolbar. 2)Click on the "Pause on this site" option.
Go back
Disable AdBlock Plus
Follow these easy steps to disable AdBlock Plus
1)Click on the icon in the browser’s toolbar. 2)Click on the toggle to disable it for "mrexcel.com".
Go back
Disable uBlock Origin
Follow these easy steps to disable uBlock Origin
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.
Go back
Disable uBlock
Follow these easy steps to disable uBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.