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

Can you update the Status Bar in Excel like you can in Access 2

Status
Not open for further replies.

SBendBuckeye

Programmer
May 22, 2002
2,166
US
In Access you can update the Status Bar during long running processes with Application.SysCmd acSysCmdSetStatus, String which works nicely. Is there an equivalent Excel statement. I am spinning through hundreds of files and it would be nice to show on the status bar which file and path I am currently processing.

Thanks for any help and/or suggestions!

Have a great day!

j2consulting@yahoo.com
 
The status bar can be changed by using

Application.StatusBar = "Processing -- Please Wait"
 
Thanks Gizzy17!

Small world. Earlier today I responded to your post on Error Handling and less than an hour later you're helping me out. That's why Tek-Tips is such a fantastic forum.


Have a great day!

j2consulting@yahoo.com
 
Actually,

Before manipulating the Status bar, you really should check its status, and return it to that afterwards. After all, the user might/might not have it displayed. So:

MyMacro()
SBar = Application.DisplayStatusBar
Application.DisplayStatusBar = True

'The rest of your code goes here.

Application.DisplayStatusBar = SBar
End Sub

Somewhere in your code you would then include a statement like:
Application.StatusBar = "Processing. Please wait"

With the appropriate coding, the actual message could include a counter and/or percentage complete, etc.

Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top