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: 11,272
Default MsgBox

Something like

ans = MsgBox("Press a button", vbYesNo)
If ans = vbYes Then

You can use button values of

vbOKOnly, vbOKCancel, vbABortRetryIgnore, vbYesNoCancel, VbYesNo,
vbRetryCancel, vbCritical, vbQuestion, vbExclamation, vbInformation

and you can combine like this

vbYesNo + vbExclamation

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"dcstech" wrote in message
...
How do you get the return status from a message box............i.e. What

button was pushed?


 
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
how can I get a msgbox? AND Excel Discussion (Misc queries) 0 February 12th 09 12:47 PM
msgbox muddan madhu Excel Worksheet Functions 2 April 14th 08 05:06 AM
MsgBox bumper338 Excel Discussion (Misc queries) 1 December 22nd 06 11:32 PM
msgbox flow23 Excel Discussion (Misc queries) 0 January 10th 06 03:25 PM
Can MsgBox Do This?? foamfollower Excel Programming 4 January 20th 04 12:09 AM


All times are GMT +1. The time now is 08:50 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"