MsgBox -change vpOk to VpOkStop

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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 macr

Dim var As Varian
var = 3
MsgBox var & " is Row Number

thank
Bob Leonar
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top