Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default message box program flow

Steven,

Try something like

Dim Res As VbMsgBoxResult
Res = MsgBox("Message", vbYesNoCancel)
If Res = vbYes Then
' user clicked yes
ElseIf Res = vbNo Then
' user clicked no
Else
' user clicked cancel
End If


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com

"Steven Wathen" wrote in message
...

I`ve got a message box with the vbyesnocancel buttons on. How do

i make
my program go in different directions depending on the choice

made in
the message box. what value or constant changes when each

different
button is pressed??

*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Reply
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
Is there a way to unload the loaded XLL file in Excel? Hi all, I amdebugging XLL link library using Visual C++. Everytime I rebuild the XLL, Ihave to close the whole Excel program and relaunch the Excel program again,and then load in the newly gene LunaMoon Excel Discussion (Misc queries) 0 July 28th 08 11:03 PM
Where are the flow shape and flow connector tabs in Vista? brad Charts and Charting in Excel 1 March 29th 08 04:53 AM
Cash Flow Lindy-Jane Charts and Charting in Excel 1 November 28th 06 02:19 PM
How do I label flow connectors in and excel flow chart? Hannah Excel Discussion (Misc queries) 1 September 7th 06 07:55 PM
Excel Program Error - Excel.exe Generated Errors Message Denise Lane Setting up and Configuration of Excel 4 March 18th 05 10:09 PM


All times are GMT +1. The time now is 08:37 PM.

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

About Us

"It's about Microsoft Excel"