When I activate my plotter, it should initialize (about 30sec). In the meantime I'd just like to display a UserForm that says we have to wait and that removes once the initialization of the plotter is complete.
My problem is that:
If I tell VBA to initialize the plotter and then open the userform, the userform opens after 30 seconds. Conversely, if I say open the userform first, then the rest of the code executes once the userform is closed.
Do you have any idea how I can fix or work around this? Thank you.
@Aurelien: In macro it is not recommended to use ProgressBars. Indeed, for it to work properly, it would require multithreaded management (management of several tasks at the same time). Because if not, the bar "freezes" during the execution of the macro and is therefore useless.
This is exactly the problem I have with my plotter, for example I would have to open my two userforms at the same time.
Thank you
Edit:
Ah I just saw .PL's message, I didn't know that there was the "_activate" method, I knew "_initialize" for excel but it didn't work on SW or I had made a mistake. I'll keep you informed, thank you!
Edit2:
It doesn't work. Could I ask you to test your solution on the macro I uploaded? To find out if I was the one who made a mistake. Thank you