OK, I have a sheet with some pretty time consuming macro's which run to configure the layout, details and maths on many sheets depending on user input. I know that my code is probably the cause of most of the time taken to run these macro's, but I am new to using macro's and VB in Excel and still learning good code structure etc. So anyway, the upshot is that i have pieced ogether a progress bar from other buts of code i found on the net. The diference is my progress bar does not try to time itself to the macro that is running but rather just goes to 100% then returns to zero and goes up again. In the code for the progress bar, i use two loops, one which determins the speed the bar rises at, and the second determins how many cycles the bar should run for. My aim was to use the bar for all my macro's so it appeared whenever a macro was run and then disappear again when the macro was complete. I have now learned that when I trigger the progress bar (its done using a userform) the macro that triggers it stops and waits for the progress bar to finish running before continuing. This obviously defeats the object of the exercise and of course makes running the macro's even longer than normal.
So my question is: Is there a way to let my original macro continue to run while the progress bar is displayed?
Sounds easy, Or maybe I'm more dumbererer than i give myself credit for.
Any help much appreciated.
Lee.
So my question is: Is there a way to let my original macro continue to run while the progress bar is displayed?
Sounds easy, Or maybe I'm more dumbererer than i give myself credit for.
Any help much appreciated.
Lee.