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: 16
Default MsgBox

Try something like this....

Sub Display_Message(
Dim UserResp As VbMsgBoxResul
UserResp = MsgBox("Hi - please click a button", vbOKCancel, "Hi"
If UserResp = vbOK The
MsgBox ("You clicked OK"
ElseIf UserResp = vbCancel The
MsgBox ("You clicked Cancel"
End I
End Sub
 
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
MsgBox redmad Excel Programming 1 August 1st 03 12:18 AM


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