Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / October 2007

Tip: Looking for answers? Try searching our database.

annoying flcker as macro copies from one sheet to another

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
none - 05 Oct 2007 08:34 GMT
I have a macro in excel 2003 that

1. Reads the contents of a cell on one sheet
2. processes the value
3. Writes the new value to a cell on another sheet

It does the three steps hundreds of times for different cells in a grid.

When the macro runs it jumps from sheet to sheet to sheet again in an
annoying way.  Is it possible to have the macro run but not update the
screen as it goes? In some way get the macro to save the updates in
memory and write them to the screen in one go when the macro terminates?

thanks
papou - 05 Oct 2007 08:55 GMT
Hello
Yes you can use:
Application.Screenupdating = False
And remember to set it back to True when you're done.
But you may also consider informing users that some processing is running
with for instance:
Application.StatusBar = "Currently processing values...please wait"

In which case you 'll have to write the code as follows:
Application.StatusBar = "Please wait currently processing values..."
Application.ScreenUpdating = False
'do your stuff
Application.ScreenUpdating = True
Application.StatusBar = False

HTH
Cordially
Pascal

>I have a macro in excel 2003 that
>
[quoted text clipped - 10 lines]
>
> thanks
|Walter Rincon| - 05 Oct 2007 09:07 GMT
this will do the trick

before doing whatever your macro does put this line

application.screenupdating=false

then AFTER your macro has finished doing it's job, put this line

application.screenupdating=true [ because you want your users to keep that
feature un-touched]

regards.

|I have a macro in excel 2003 that
|
[quoted text clipped - 10 lines]
|
| thanks

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.