View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Alan McQuaid via OfficeKB.com Alan McQuaid via OfficeKB.com is offline
external usenet poster
 
Posts: 25
Default MsgBox working is Excel Macro Programming

Hi,

You could use the below

Message = MsgBox("Do you want to continue?", vbOKCancel, "Continue?")
If Message = vbCancel Then End
''' If OK is selected code will run through

Alan

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200908/1