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

Locking user access while macro runs in Excel

Status
Not open for further replies.

Roosters

Technical User
May 14, 2000
61
AU
I need to lock user access and/or display a "Please Wait" message while a macro runs.
The macro gathers info from several sheets and can take up to 20-30 seconds to run. Any help would be appreciated.

Phil
 
See if this works for you.

AT THE START OF MACRO:
Application.Cursor = xlWait ' Smoothes out the macro execution
CaptionSave = ActiveWorkbook.Windows(1).Caption ' Saves heading at top of screen
ActiveWorkbook.Windows(1).Caption = "Doin my thing, please wait . . . ."

AT THE END OF MACRO:
ActiveWorkbook.Windows(1).Caption = CaptionSave ' Put caption back
Application.Cursor = xlDefault
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top