LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Excel2000: Avoiding loop in Worksheet_Change event

Gary''s Student schrieb:

Application.EnableEvents=False
do your logic
Application.EnableEvents=True


You might also want to include some error handling. Here's a good
introduction on how to do this:
http://www.cpearson.com/excel/ErrorHandling.htm

The reason: If an error occurs in your logic, the events stay disabled.
Your code for Worksheet_change will not run anymore.

Happened to me all the time recently while developing a small Excel
application.

CU,
Christian
 
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
Excel2000 worksheet Change event doesn't work in Excel2003 or higher Arvi Laanemets Excel Programming 3 April 30th 08 09:23 AM
How do I change a Worksheet_change event to a beforesave event? Tueanker Excel Programming 5 June 29th 07 03:00 PM
Worksheet_change event. Mike K Excel Programming 8 October 24th 04 09:00 PM
Excel2000 VBA If-Then/Loop Failures prodsched Excel Programming 5 March 3rd 04 08:31 PM
Worksheet_Change Event Sam Excel Programming 2 November 21st 03 06:51 PM


All times are GMT +1. The time now is 03:01 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"