Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Worksheet Calculate Event

Hi everybody,
I need to trigger a macro after I update an autofilter
list. (excel 2000)
I read about the Worksheet Calculate and Worsheet Change
events here and I am using it. The problem is that part of
my macro makes some changes in the worksheet and therefore
it runs in an eternal loop.
Does anybody have a suggestion to solve this problem?
Thanks in advance
Gustavo
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Worksheet Calculate Event

Thanks Beto....it works great!
Gustavo
-----Original Message-----
Gustavo wrote:

Hi everybody,
I need to trigger a macro after I update an autofilter
list. (excel 2000)
I read about the Worksheet Calculate and Worsheet

Change
events here and I am using it. The problem is that

part of
my macro makes some changes in the worksheet and

therefore
it runs in an eternal loop.
Does anybody have a suggestion to solve this problem?


Hi, you need to disable the events and then enable them

after your macro
is run.

Application.EnableEvents = False
' Your macro goes here
Application.enableEvents = True

--
Beto
Reply: Erase between the dot (inclusive) and the @.
Responder: Borra la frase obvia y el punto previo.

.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 140
Default Worksheet Calculate Event

Gustavo wrote:

Hi everybody,
I need to trigger a macro after I update an autofilter
list. (excel 2000)
I read about the Worksheet Calculate and Worsheet Change
events here and I am using it. The problem is that part of
my macro makes some changes in the worksheet and therefore
it runs in an eternal loop.
Does anybody have a suggestion to solve this problem?


Hi, you need to disable the events and then enable them after your macro
is run.

Application.EnableEvents = False
' Your macro goes here
Application.enableEvents = True

--
Beto
Reply: Erase between the dot (inclusive) and the @.
Responder: Borra la frase obvia y el punto previo.

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
Help with worksheet event NZuser Excel Worksheet Functions 6 April 20th 09 11:01 AM
Turn off calculate event nobbyknownowt Excel Discussion (Misc queries) 4 July 5th 06 10:51 AM
SheetChange event starts before .calculate finished Stephen Bullen Excel Programming 5 September 13th 03 01:34 AM
SheetChange event starts before .calculate finished Dave Peterson[_3_] Excel Programming 2 September 9th 03 08:49 AM
macro to apply worksheet event to active worksheet Paul Simon[_2_] Excel Programming 3 August 7th 03 02:50 AM


All times are GMT +1. The time now is 04:08 PM.

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"