ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to deactivate cells without macro references (https://www.excelbanter.com/excel-programming/331737-how-deactivate-cells-without-macro-references.html)

Adomas

How to deactivate cells without macro references
 
How to deactivate cells which are not used by macro but when I change
something there most of my macros start running.
I can do changes only when I switch to design mode.
How to make so, that the changes in the cells wouldn't start macro?
And how to do so, that when I change a value in drop-down menu which doesn't
contain macros it wouldn't start macros of another drop-down menu?

Thank you for the help!

Dave Peterson[_5_]

How to deactivate cells without macro references
 
If you're designing this workbook, maybe just disabling events (temporarily)
would be sufficient.

Alt-f11 (to get to the VBE where macros live)
ctrl-g (to see the immediate window)
Type this and hit enter:

application.enableevents = false

Change it to true when you're ready to test your workbook.



Adomas wrote:

How to deactivate cells which are not used by macro but when I change
something there most of my macros start running.
I can do changes only when I switch to design mode.
How to make so, that the changes in the cells wouldn't start macro?
And how to do so, that when I change a value in drop-down menu which doesn't
contain macros it wouldn't start macros of another drop-down menu?

Thank you for the help!


--

Dave Peterson


All times are GMT +1. The time now is 05:32 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com