PC Review


Reply
Thread Tools Rate Thread

Control Worksheet_SheetChange Events

 
 
legacyvbc@gmail.com
Guest
Posts: n/a
 
      1st May 2008
I have a class that I created which automatically updates the cell
format based upon the input. The problem I have is that I have
several add-ins that are used to pull data into excel so when I run
those my sheet_change event runs as well and slows down the data
download considerable. I am trying to figure out how to control it so
that if these other add-ins run, then my cell update event won't run
until it is done.

Any ideas?

Thanks
 
Reply With Quote
 
 
 
 
Norman Jones
Guest
Posts: n/a
 
      1st May 2008
Hi Legacy,

Can you not disable, and subsequently
re-enable, events:

[...]
With Application
.EnableEvents = False
'Perform your actions
.EnableEvents = True
End With
[...]

---
Regards.
Norman


<(E-Mail Removed)> wrote in message
news:ef23ea4b-77bf-4e01-806f-(E-Mail Removed)...
>I have a class that I created which automatically updates the cell
> format based upon the input. The problem I have is that I have
> several add-ins that are used to pull data into excel so when I run
> those my sheet_change event runs as well and slows down the data
> download considerable. I am trying to figure out how to control it so
> that if these other add-ins run, then my cell update event won't run
> until it is done.
>
> Any ideas?
>
> Thanks


 
Reply With Quote
 
legacyvbc@gmail.com
Guest
Posts: n/a
 
      1st May 2008
I might not be explaining this correctly. The other functions are
being run from 3rd party add-ins or dlls so I don't have access to
them. I only have access to the format cell event that I created. If
I disable events then mine won't run at all. I need to somehow catch
the fact that one of these other items is being run and then I can
turn off and turn on events.

I hope this explains it better. Also, i may be misunderstanding your
solution so let me know if that is the case...


On May 1, 12:37 pm, "Norman Jones" <normanjo...@wherforartthou.com>
wrote:
> Hi Legacy,
>
> Can you not disable, and subsequently
> re-enable, events:
>
> [...]
> With Application
> .EnableEvents = False
> 'Perform your actions
> .EnableEvents = True
> End With
> [...]
>
> ---
> Regards.
> Norman
>
> <legacy...@gmail.com> wrote in message
>
> news:ef23ea4b-77bf-4e01-806f-(E-Mail Removed)...
>
> >I have a class that I created which automatically updates the cell
> > format based upon the input. The problem I have is that I have
> > several add-ins that are used to pull data into excel so when I run
> > those my sheet_change event runs as well and slows down the data
> > download considerable. I am trying to figure out how to control it so
> > that if these other add-ins run, then my cell update event won't run
> > until it is done.

>
> > Any ideas?

>
> > Thanks


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Control events raised in a control from a project Mike Microsoft VB .NET 0 28th Jul 2007 06:18 PM
Delete events/procedures of control if control is deleted at design time in VB.Net 2005 ? Luqman Microsoft VB .NET 1 30th Jun 2006 08:15 PM
How can I make a control show inherited events from System.Windows.Forms.Control Ralph Krausse Microsoft Dot NET Framework Forms 1 13th Nov 2004 09:21 PM
Translating child events into parent-control events Scott McChesney Microsoft VB .NET 0 7th May 2004 04:11 PM
Events for menu user control using ie web control Sunkam Santhoshi Microsoft ASP .NET 0 16th Dec 2003 09:50 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:56 AM.