LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Wait for user response


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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wait for user to change data after msgbox ???? CanadianTrev Excel Discussion (Misc queries) 1 June 18th 05 08:27 PM
i want a macro in execl to wait for an input from the user. toiletman Excel Programming 4 March 28th 05 02:17 PM
User form/ to show please wait Momo Excel Programming 10 February 7th 05 02:41 PM
wait for user action in VBA code benb Excel Programming 4 September 24th 04 09:05 PM


All times are GMT +1. The time now is 08:30 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"