Progress Indicator

Panoos64

Well-known Member
Joined
Mar 1, 2014
Messages
890
Hi all, i prepared a VBA command by which i issue management accounts and it takes around 20-30 seconds when i run it. I would like to add a progress indicator in percentage into the above command, so that when i run it to appear this information on screen, e.g. Management Accounts in progress... I tried to create a user form in vba, but i couldn't managed it. I would be greatly appreciated any support. Thanks all in advance
 
Panoos65 , Hope you have managed to create a Userform !!!


Kelly
It's a long time since I've made a "progress Indicator" , never thought they where worth the Hassle !!, except for amusement.
You do need a counter in the code of some description, to relate the total count to the "Label" width, so that at the end of the count you are at the end of the Label width.

So if your Total counter (p), count is 5000 and the Max label width is 250 then 5000/250=20
Then you need to divide your counter by 20, as below
Code:
 p = p + 1
       Label1 .Width = p / 20

Hope that helps !!
Regrds Mick
 
Upvote 0

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Hi Mick, i overcome my issue. Just i am thinking where i should adapt the code and i am testing on it. I think i will find the solution, otherwise i will write again, asking for your support. Thanks you so much for your interesting to resolve my project. Hv a lovely day!!
 
Last edited:
Upvote 0
Panoos65 , Hope you have managed to create a Userform !!!


Kelly
It's a long time since I've made a "progress Indicator" , never thought they where worth the Hassle !!, except for amusement.
You do need a counter in the code of some description, to relate the total count to the "Label" width, so that at the end of the count you are at the end of the Label width.

So if your Total counter (p), count is 5000 and the Max label width is 250 then 5000/250=20
Then you need to divide your counter by 20, as below
Code:
 p = p + 1
       Label1 .Width = p / 20

Hope that helps !!
Regrds Mick
Okay thanks. I will give it a try and challenge myself a bit.
Kelly
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,333
Members
452,636
Latest member
laura12345

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