Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have some visual basic code on a sheet which i use to provide a certain
layout of the sheet for printing. The nature of the code is complicated and slows the spreadsheet down when i am editing it. Is there an easy way to deactivate the code temporarily so that i can edit the spreadsheet without the code being active? At present i have to manually delete the entire code and then re paste it to reactivate it. It would be great if i could set up a macro such that I could push a button on the sheet to deactivate and activate the code |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Aside from creating a flag and adding to the macro, you could just click the
Design Mode icon on the Visual Basic toolbar, which won't allow code to run, then exit design mode when the macros should run. -- Tim Zych SF, CA "Roger on Excel" wrote in message ... I have some visual basic code on a sheet which i use to provide a certain layout of the sheet for printing. The nature of the code is complicated and slows the spreadsheet down when i am editing it. Is there an easy way to deactivate the code temporarily so that i can edit the spreadsheet without the code being active? At present i have to manually delete the entire code and then re paste it to reactivate it. It would be great if i could set up a macro such that I could push a button on the sheet to deactivate and activate the code |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Maybe disable events while you are editing.
Sub disable_events() Application.EnableEvents = False End Sub Do your editing here then.......... Sub enable_events() Application.EnableEvents = True End Sub Gord Dibben MS Excel MVP On Fri, 16 Nov 2007 21:20:01 -0800, Roger on Excel wrote: I have some visual basic code on a sheet which i use to provide a certain layout of the sheet for printing. The nature of the code is complicated and slows the spreadsheet down when i am editing it. Is there an easy way to deactivate the code temporarily so that i can edit the spreadsheet without the code being active? At present i have to manually delete the entire code and then re paste it to reactivate it. It would be great if i could set up a macro such that I could push a button on the sheet to deactivate and activate the code |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
I am trying to create a spreadsheet for businesses within zip code | Excel Worksheet Functions | |||
VB code to copy sheet format to another sheet | Excel Discussion (Misc queries) | |||
Copy code to a new spreadsheet | Excel Discussion (Misc queries) | |||
Enabling macros while the sheet being protected ! | Excel Discussion (Misc queries) | |||
Can i see code and spreadsheet simultaneously | New Users to Excel |