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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.visible command

Status
Not open for further replies.

scrappe7

Technical User
Jul 30, 2001
82
US
I have a rather detailed macro that opens a lot of xls files then closes them. Id rather the user not see all the processing and only see the end result. I tried using Application.Visible = Flase at the begining and then Application.Visible = True as the last line to bring excel back on the screen but this does not do the trick. IS there a way to hide just the workbooks being opened and closed and ntot he entire excel application?
 
Hi,
Try using...
Code:
Application.ScreenUpdating = False
'stuff happens
Application.ScreenUpdating = True
'get out
That will "freeze" everything while the application runs. You might want to let the user know that something good is happening -- maybe by statusing the progress on the StatusBar. :) Skip,
metzgsk@voughtaircraft.com
 
How would I throw a status bar in there, youre thing worked perfectly, thanks.
 
The StatusBar object is displayed in the bottom margin of your Excel window. It probably displays "Ready" if you were to look at it now.

Use the Help menu to see how the Statusbar Object is formatted. It is a good practice to dim an OldStatusbar to store the attributes of the Statusbar before you change it, and then return the attributes after you're done. But the short of it is that you can assign values to the statusbar very simply...
Code:
Application.StatusBar = MyStatusMessage
Hope this helps. :) Skip,
metzgsk@voughtaircraft.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top