I'm trying to use the CorelDraw progress bar in a macro, but I'm having trouble.
I've tried this as a simple test:
Sub testing_appstatus()Dim count1 As LongApplication.Status.BeginProgressFor count1 = 1 To 10Application.Status.progress = count1 / 10 * 100MsgBox "The count is " & count1Next count1Application.Status.EndProgressEnd Sub
If I just run the above macro, then I never see the progress bar appear.
If I FIRST run the following macro:
Sub show_progressbar()Application.Status.BeginProgressEnd Sub
then the progress bar is displayed (and stays displayed; I haven't turned it back off).
If I THEN run the macro shown earlier, the progress bar works the way I would expect it to. Each time that it stops, waiting for me to dismiss the message box, I can see that the progress bar has advanced as it should based on count1.
What I'd like to do, of course, is to be able to display, use, and then turn off the progress bar within one macro.
I'm testing this with X7 and X8.
Anybody willing (and able) to help a Corel VBA noob make his ignorance a little bit smaller?
When I try it on a machine that has X5, the first macro, by itself, shows the progress bar as expected. X7 on the same machine - no joy; same behavior as described in my first post.