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

Progess of a macro in a form 1

Status
Not open for further replies.

pkrmott

Programmer
Jul 22, 2006
8
US
I would like a form to pop up and give a progress statement for a fairly long-winded macro I have written. Something along the lines of "33 of 10,000 complete" would be excellent, and I do not want to use the status bar (it's being used for something else already).

At present, I have a form and i load it when the macro is started with the command...

StatusForm.Show vbModeless

"StatusForm" is the name of my form.

My macro pulls data from a number of different spreadsheets and the web, so it is jumping around all over the place. My biggest confusion is that if I update a textbox in the form (with a comment like "33 of 10000 complete"), and have the macro "sleep" the form does not become visible. Even if I unload it and use the show command to bring it back again, it stays greyed out. Has anyone ever run into this issue before? I'd appreciate any thoughts.
 
Firefytr, thanks a million. I was able to use the code you directed me to and eventually traced my problem back to the fact that I had not included a "DoEvents" command where one was (apparently) necessary. Thanks again for the helpful post.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top