Jump to content

Recommended Posts

Posted

hi...can someone help me how to create progressbar in VBA..thanks..:)

Posted

First add the "Microsoft ProgressBar Control". To do this go to Tools > Additional Controls. Once you have the control added simply place it on your form.

 

To use it initialize it by setting a max value. This should be the total length of a For / Next loop or something similar. So if I was going to preform some operation on 20 objects I would set it up like this;

frmMain.ProgressBar1.Max = 20

 

Inside your loop you simply set the Progress Bars Value property each time you loop though.

frmMain.ProgressBar1.Value = x

 

Hope this helps.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...