Microsoft ProgressBar Control Version 6

  • Thread starter Thread starter Joseph
  • Start date Start date
I have a couple of examples on my website. One statusbar, one commandbar.
 
Hi Joseph

How about right here?

You will find the ProgressBar control:
From a User form "tools additional controls"
or
From a Worksheet "More controls"

To run the sample, place a ProgressBar on the worksheet
set the max value to 10000 e.i.
(right click the ProgressBar/properties/max/10000)

Private Sub CommandButton1_Click()

Dim intCounter As Integer
Dim i As Integer
Dim sum As Integer
i = 0
ProgressBar1.Visible = True '///// Microsoft Windows Common Control 6.0

For i = 1 To 10000

Do While intCounter < i
intCounter = intCounter + 1 '///// For the ProgressBar.
ProgressBar1.Value = intCounter '///// Update progress.''
sum = sum + 1

Loop
Next i

ProgressBar1.Visible = False

End Sub

Good Luck
TK
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top