Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 67
Default Event change freeze my workbook

Hi,

I have an event change sheet on my workbook, everytime I delete row(s)
my excel is freezing. I have to force to close the whole excel. Any
idea?
Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default Event change freeze my workbook

please show the code.
Note that deleting a row fires the event. If you delete by using code, then
precede the delete routine with
Application.EnableEvents = False
to turn OFF events
after the deletion code , turn events on with
Application.EnableEvents = True


"broogle" wrote:

Hi,

I have an event change sheet on my workbook, everytime I delete row(s)
my excel is freezing. I have to force to close the whole excel. Any
idea?
Thanks


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Event change freeze my workbook


broogle wrote:
Hi,

I have an event change sheet on my workbook, everytime I delete

row(s)
my excel is freezing. I have to force to close the whole excel. Any
idea?
Thanks


Is it possible that you're creating an endless loop? Is the event
you're executing on the delete row itself? If so, then you're code
will keep executing on that event and cause a loop. To keep this from
happening create a global boolean variable like in the following pseudo
code;

DIM GTFVAR AS BOOLEAN

Sub ChangeEvent()

IF GTFVAR = FALSE THEN
GTFVAR = TRUE


'Make changes here


GTFVAR = FALSE

END IF

End Sub

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
Change event and calculate event Antje Excel Programming 1 March 29th 05 09:03 PM
Change Workbook Event Ronbo Excel Programming 1 January 26th 05 07:13 PM
Change Cell from Validated List Not Firing Worksheet Change Event [email protected] Excel Programming 3 October 4th 04 03:00 AM
Chart Values that change based on Change event ExcelMonkey[_119_] Excel Programming 1 May 15th 04 03:43 AM
change event/after update event?? scrabtree23[_2_] Excel Programming 1 October 20th 03 07:09 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"