Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Not showing a macro executing in Excel

Status
Not open for further replies.

WeAreNotAlone

Technical User
Mar 27, 2005
10
US
Hi all

I have just started writing macros in Excel. When it executes the screen and woorkbooks flash for several seconds. I have been told that it is possible to stop excel doing this.

Is this correct and if so what is the code and where is the best place to put it in the coding?

Thanks

Mally
 

Congratulations. You are learning a very valuable skill.

There is a VBA forum which is a better place for questions like this. See forum707 and faq707-4105

 
Welcome to TekTips, WeAreNotAlone.

That certainly is possible. Just add the following code to the beginning and end of your code:
Code:
sub example
application.screenupdating = false
'...
'your code
'...
application.screenupdating = true
end sub

[tt]_____
-John
[/tt]Help us help you. Please read FAQ181-2886 before posting.
 
Thanks for your help anotherhiggins.

Will give it a go.

Mally
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top