Is it possible to create a progress indicator in VBA without a loop?

jdmc45

Board Regular
Joined
May 8, 2011
Messages
146
Office Version
  1. 365
Platform
  1. Windows
Hi,

So is it possible to create a progress indicator in VBA without a loop?
Such as when a macro is doing basic formatting like resizing columns, for example. And if so, does anyone have any code for it or an idea about how to go about the code?

Cheers!

James
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
I assume from the lack of reply that it is impossible to do
 
Upvote 0
What do you mean "progress indicator without a loop"?
Then what for progress indicator without a loop?
 
Upvote 0
You don't have to have a loop to use a progress indicator but you do then need to have another method of determining the progress percentage at each point. None of the progress bars I've seen or used care about what sort of routine they are called from - they just need to be told how much progress to display.
 
Upvote 0
Or to put it another way: you start a progress indicator with a value of zero, or 0%, and then update it as processing continues to indicate to the user how much processing has been completed.

If you don't update the progress indicator from the process as it continues, where are you planning to update it from? The process need not be a loop of any kind - it could merely be several blocks of code and you update the progress indicator after each one has completed - but the progress indicator has to be told what value to display and when.

You can't just say to the progress indicator, "This next bit of code takes ages so change yourself at the appropriate intervals to reflect how much longer you think is left to go" - you have to work it out yourself and code the change yourself.

I'm not sure that is actually putting it another way, but hopefully you get the idea.
 
Upvote 0
estimation.png
 
Upvote 0
Funnily enough I saw that one again last week :)
 
Upvote 0
Hi,

So is it possible to create a progress indicator in VBA without a loop?
Such as when a macro is doing basic formatting like resizing columns, for example. And if so, does anyone have any code for it or an idea about how to go about the code?

Cheers!

James
It is possible.
Check my answer
Progress bar with no loop ?

Hope this help someone in need.

Thank you
PritishS
 
Upvote 0

Forum statistics

Threads
1,224,583
Messages
6,179,682
Members
452,937
Latest member
Bhg1984

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top