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 / February 2008

Tip: Looking for answers? Try searching our database.

What is the command to hide macro operations

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Martin C - 08 Feb 2008 09:13 GMT
I used to know this, but have forgotten it and cannot find it through Google
for the Excel help.

I have written a macro for a spreadsheet, but it is rather slow in running.
I once used a command that effectively hid the operations taking place by
the macro from the screen. This significantly increased the speed at which
the macro ran.

Does any kind soul know which VBA command is required to turn off the
console refresh and then later turn it back on again.

TIA
Martin
Pete_UK - 08 Feb 2008 09:20 GMT
Put this at the beginning of your code:

   Application.ScreenUpdating = False

and don't forget to include this:

   Application.ScreenUpdating = True

to turn it back on again.

Hope this helps.

Pete

> I used to know this, but have forgotten it and cannot find it through Google
> for the Excel help.
[quoted text clipped - 9 lines]
> TIA
> Martin
Martin C - 08 Feb 2008 09:55 GMT
Thanks for the rapid response.
I remember now and it works.
Thanks again.
Martin

Put this at the beginning of your code:

   Application.ScreenUpdating = False

and don't forget to include this:

   Application.ScreenUpdating = True

to turn it back on again.

Hope this helps.

Pete

On Feb 8, 9:13 am, "Martin C" <mart...@invalid.com> wrote:
> I used to know this, but have forgotten it and cannot find it through
> Google
[quoted text clipped - 11 lines]
> TIA
> Martin
Pete_UK - 08 Feb 2008 10:23 GMT
You're welcome, Martin - glad to help.

Pete

> Thanks for the rapid response.
> I remember now and it works.
[quoted text clipped - 34 lines]
>
> - Show quoted text -
 
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.