Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 492
Default Disable Code

Hi,
I have a file with a lot of code in it, Macros and Events etc. The goalposts
have moved and I have to alter it a bit. Is there a way to stop any kind of
code from executing to make editing easier?
I know I can open it with Macros disabled then reopen to see if it works,
but it does get very tedious that way..
I've tried
Application.EnableEvents=False in a Macro
But some of the code still seems to run anyway,
Anyone know a way to completely disable all code from running with Macros
Enabled?
Thanks,
Alan.




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Disable Code


Depending on how many macros you have or need to disable, might try a
low tech method:

add this as the first line in each macro you want to disable:

exit sub

Then go thru them individually, debugging or editing as needed.


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/

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
split post code (zip code) out of cell that includes full address Concord Excel Discussion (Misc queries) 4 October 15th 09 06:59 PM
Drop Down/List w/Code and Definition, only code entered when selec Spiritdancer Excel Worksheet Functions 2 November 2nd 07 03:57 AM
Code to disable a cell in excel Athens Excel Discussion (Misc queries) 2 February 20th 07 04:52 PM
Disable VBA code execution when loading a workbook Charles Excel Discussion (Misc queries) 4 October 14th 05 09:12 PM
Enable/Disable Worksheet Change Event code Stuart[_5_] Excel Programming 2 November 3rd 03 07:22 PM


All times are GMT +1. The time now is 04:50 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"