LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 644
Default How do I prevent unintentionally running a Macro?

If MsgBox("Macro1 Is about to launch. Continue?", vbYesNo) = vbNo Then
Exit Sub

Charles Chickering

UA_Jeremy wrote:
So, I find myself accidentally running macros. I have about 20 setup on my
laptop. this usually occurs when I'm using the keyboard with 'ctrl'. Since,
you can't undo a macro this is a big problem for me.

So, I want to add some code to my macros that will make a messabe box pop-up
and ask me if I want to run the macro. If, I select 'yes' then the macro runs
as normal; if 'no', then the macro ends.

Can anyone help?


 
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
If I have my sheets protected will that prevent me running a macro to hide certain sells? Marc Excel Worksheet Functions 0 May 17th 06 11:36 PM
SHIFT doesn't prevent macro from running at startup Jarryd Excel Programming 3 December 7th 05 09:24 PM
unintentionally changing SS lil'bit Excel Discussion (Misc queries) 6 November 12th 05 07:17 PM
Prevent A Macro From Running If SpreadSheet is Filtered carl Excel Worksheet Functions 1 June 22nd 05 04:04 PM
Prevent running macro upon closing Excel Deneb Excel Programming 2 February 2nd 05 06:07 PM


All times are GMT +1. The time now is 07:23 PM.

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"