Progress bar VBA for Excel

User avatar
sal21
PlatinumLounger
Posts: 4357
Joined: 26 Apr 2010, 17:36

Progress bar VBA for Excel

Post by sal21 »

I ned to create a progressbar with infinity loop...
In effect i need to run the bar from left to to right and right to the left until a process is ended....How to?

pseudo code:

...
run progressbar

call my macro

end progressbar

...

User avatar
HansV
Administrator
Posts: 78500
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Progress bar VBA for Excel

Post by HansV »

Should the progress bar be placed on a worksheet, or on a userform?
Best wishes,
Hans

User avatar
sal21
PlatinumLounger
Posts: 4357
Joined: 26 Apr 2010, 17:36

Re: Progress bar VBA for Excel

Post by sal21 »

HansV wrote:Should the progress bar be placed on a worksheet, or on a userform?
Sorry, in a USERFORM

User avatar
HansV
Administrator
Posts: 78500
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Progress bar VBA for Excel

Post by HansV »

Does the macro contain a loop from which we can update the progress bar?
Best wishes,
Hans

User avatar
sal21
PlatinumLounger
Posts: 4357
Joined: 26 Apr 2010, 17:36

Re: Progress bar VBA for Excel

Post by sal21 »

HansV wrote:Does the macro contain a loop from which we can update the progress bar?
No loop in code.

but... start progresbar, call macro, end progressbar

choice you the steep count for the progressbar

User avatar
HansV
Administrator
Posts: 78500
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Progress bar VBA for Excel

Post by HansV »

The attached sample workbook has been adapted from an example by John Walkenbach.
PROGIND.xlsm
You do not have the required permissions to view the files attached to this post.
Best wishes,
Hans