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

displaying a message with the hourglass

Status
Not open for further replies.

t16turbo

Programmer
Mar 22, 2005
315
GB
my macro takes a while to run, so I was hoping to be able to display a pop up box to the user, so they know it's doing something (and not crashed)

is this possible?


 
thanks Mike,

i looked at that link, but I cant see how I can use that code in conjunction with my Modules run by calling the first one:

Call openfobs

not sure where the call statement needs to go..

 
As you could probably tell from VanGelder's example, the progress bar type indicator is best suited to code that is executing in a loop with a fixed number of iterations, since the progress bar typically expands to its max value (100%) coinciding with the end of the loop operation. I assumed that was your case. If, instead you simply have a macro that takes an extended period of time to complete, without being easily quantifiable, then the simplest solution may be to display a custom message via a Userform at the start of the macro, then Unload it when the macro completes. The Userform will need to be displayed as a modeless form; e.g.,
Code:
Userform1.Show vbModeless

Regards,
Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top