Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Prior to executing a Macro in a workbook, I would like a Warning message to
pop-up asking the user to verify they are wanting to run this macro. TFTH, Tom |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Just include code in your macro that includes an OK/Cancel Box -- and have OK
be continue running, have cancel stop the macro there. "tom" wrote: Prior to executing a Macro in a workbook, I would like a Warning message to pop-up asking the user to verify they are wanting to run this macro. TFTH, Tom |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Option Explicit
sub yourmacro() resp = msgbox(Prompt:="wanna run this?", buttons:=vbyesno) if resp = vbno then exit sub .... end sub tom wrote: Prior to executing a Macro in a workbook, I would like a Warning message to pop-up asking the user to verify they are wanting to run this macro. TFTH, Tom -- Dave Peterson |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() tom wrote: Prior to executing a Macro in a workbook, I would like a Warning message to pop-up asking the user to verify they are wanting to run this macro. TFTH, Tom Hi Tom, If you are able to edit each macro's code then you could have each macro start off with these three lines... Dim msgCheck As VbMsgBoxResult msgCheck = MsgBox("Are you sure you want to blah blah?", vbYesNo) If msgCheck = vbNo Then Exit Sub Edit "blah blah" to something applicable to the macro's function. Ken Johnson |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Option Explicit
sub yourmacro() dim resp as long '<-- I forgot this! resp = msgbox(Prompt:="wanna run this?", buttons:=vbyesno) if resp = vbno then exit sub .... end sub Dave Peterson wrote: Option Explicit sub yourmacro() resp = msgbox(Prompt:="wanna run this?", buttons:=vbyesno) if resp = vbno then exit sub .... end sub tom wrote: Prior to executing a Macro in a workbook, I would like a Warning message to pop-up asking the user to verify they are wanting to run this macro. TFTH, Tom -- Dave Peterson -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
File in use error message on a non shared workbook | Excel Discussion (Misc queries) | |||
error message when opening excel 2000 | Excel Discussion (Misc queries) | |||
Simple message box question | Excel Discussion (Misc queries) | |||
Message Input with link to different work sheet | New Users to Excel | |||
Message Input with link to different work sheet | New Users to Excel |