Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 92
Default 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.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 735
Default Excel to by-pass Private Sub Worksheet_Calculate()

Application.EnableEvents = False

--

Regards,
Nigel




wrote in message
...
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.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 92
Default 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.
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 92
Default 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.


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
Improve method of calling a private function in a private module XP Excel Programming 1 April 30th 08 06:41 PM
Re : Excel Worksheet_Calculate() & Worksheet_Change() [email protected] Excel Programming 0 March 3rd 08 09:31 AM
pass value to excel userform - is there a constructor? how to pass Rich Excel Programming 6 August 14th 07 09:18 AM
Pass variables from Worksheet_Calculate sub to Module John Michl Excel Programming 2 June 22nd 06 04:12 PM
Private Sub Running Other Private Sub Inadvertently Ross Culver Excel Programming 2 February 10th 05 07:17 PM


All times are GMT +1. The time now is 08:47 AM.

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"