![]() |
Re : Excel to by-pass Private Sub Worksheet_Calculate()
To click the UnDo-button and then, Private Sub Worksheet_Calculate()
inadvertently executes. Would like to by-pass the given Event-Handler, but How ? Please share your experience. Regards. |
Excel to by-pass Private Sub Worksheet_Calculate()
|
Excel to by-pass Private Sub Worksheet_Calculate()
Nigel, Esq.,
Thank you for responding to my query. By virtue of, Application.EnableEvents = False ; And therafter, everything else will be Dormant and remain so ...... that's Not a State Everybody Else would be yearning to enter. Besides UnDo, Autofit-button will also activate Private Sub Worksheet_Calculate() ; so do many more other buttons, I reckon. Private Sub Worksheet_Calculate(), in this particular instance, is deployed in waiting for "ActiveSheet.AutoFilter" actuation alone. Meaning that it would be meaningless to activate, Private Sub Worksheet_Calculate(), if UnDo-button is inadvertently pressed. It will only be meaningful to activate, Private Sub Worksheet_Calculate (), when the AutoFilter on th e ActiveSheet is effected thereof. Admittedly, Private Sub Worksheet_Calculate() is particularly unruly ; When one Private Sub Worksheet_Calculate() executes, it appears that all the other Private Sub Worksheet_Calculate()'s coded behind all the other worksheets would execute too. There's no stopping all the Private Sub Worksheet_Calculate()'s from executing All-At-Once (although it may not mean Simultaneity in the Relativistic-Sense). Regards. |
Excel to by-pass Private Sub Worksheet_Calculate()
|
Excel to by-pass Private Sub Worksheet_Calculate()
Nigel, Esq.,
Thank you for responding to my query. As given previously, Private Sub Worksheet_Calculate(), in this particular instance, is deployed in waiting for "ActiveSheet.AutoFilter" actuation alone. The question is, to devise a certain means, to isolate, Private Sub Worksheet_Calculate(), such that it would not respond to extraneous activation by, Autofit, UnDo, ReDo and probably a multiplicity of other (spurious) button-clicking. Private Sub Worksheet_Calculate(), is meant for "ActiveSheet.AutoFilter", out of exclusive necessity in this application. Please share your experience. Regards. |
All times are GMT +1. The time now is 02:58 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com