Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Good evening Brisbane Rob The code below shows how to get a MsgBox to await a yes/no input from user. Technically, you only need line 2, the lines after that jus demonstrate how to capture the user response. Sub Test() Response = MsgBox("The macro has now stopped. Select Yes or No" vbYesNo) If Response = vbYes Then MsgBox "Selected : Yes" Exit Sub End If MsgBox "Selected : No" End Sub HTH Dominic -- dominic ----------------------------------------------------------------------- dominicb's Profile: http://www.excelforum.com/member.php...fo&userid=1893 View this thread: http://www.excelforum.com/showthread.php?threadid=46837 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Wait for user to change data after msgbox ???? | Excel Discussion (Misc queries) | |||
i want a macro in execl to wait for an input from the user. | Excel Programming | |||
User form/ to show please wait | Excel Programming | |||
wait for user action in VBA code | Excel Programming |