Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default MsgBox -change vpOk to VpOkStop

Dim var As Variant
Dim ans as Long
var = 37
ans = MsgBox (var & " is Row Number, is this correct", vbYesNo)
if ans = vbNo then _
exit sub

--
Regards,
Tom Ogilvy


"rleonard" wrote in message
...
Need to change so that If 37 is incorrect Ican stop or cancel running of

Macro.

the number "37" is changed by using Edit Find & Replace while editing

macro

Dim var As Variant
var = 37
MsgBox var & " is Row Number"

thanks
Bob Leonard



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
msgbox muddan madhu Excel Worksheet Functions 2 April 14th 08 05:06 AM
MsgBox CC Excel Discussion (Misc queries) 4 May 5th 06 05:45 PM
Wait for user to change data after msgbox ???? CanadianTrev Excel Discussion (Misc queries) 1 June 18th 05 08:27 PM
Can MsgBox Do This?? foamfollower Excel Programming 4 January 20th 04 12:09 AM
how change selection when msgbox dialog box on screen? Ian Elliott[_2_] Excel Programming 1 September 9th 03 01:47 PM


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