Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to show than a macro is running and didn't crash ?

Status
Not open for further replies.

Dina3419

New member
Aug 31, 2009
5
US
Hello everybody,

I created a VBA macro with CATIA V5 which can run during 30 min.
The problem is that nothing moves and half the time the screen is white so the user thinks the macro crashed.

I'd like to add something showing the macro is still working.
I used a label in a progressbar, the label's widht increases thanks to a timer, but this works only AFTER the macro's done.

Do you know how I could make this work in the same time than the macro ? Or anybody has an other idea ?

Thanks in advance,

Dina
 
Replies continue below

Recommended for you

Hi,


Try to run it in batch mode with a final message of job done if your computer is able to cover 2 CATIA processes.

Regards
Fernando
 
I've used the ProgressBar and a periodic 'DoEvents' to update the status message.

If that doesn't work (i.e. screen still white), you can try making a small form with a message like 'Macro Still Running. Please Wait...' or something like that. When you show it use:
Code:
frmStatus.Show vbModeless
You'll probably need to do a periodic 'DoEvents' for this as well.

Change the Message to 'Done!' when macro complete.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Top