Refresh form progress bar, not refreshing

B

bigbinc

I am trying to write a small progress bar using a form, Here is my
code but the bar only changes when I save the actual VBA code.
Strange!!!

Me.txtPctComplete.Caption = pintCurStep / xmintNumSteps
Me.Repaint
Me.txtCurStep.Caption = pintCurStep
Me.Repaint

If pintCurStep < maxStepsFile Then
Me.boxPct.Width = Me.boxWhole.Width * (pintCurStep /
xmintNumSteps)
Me.Repaint
End If ' [ If Mod ]

Dim xStart As Long
Dim theTmp As Double

For xStart = 1 To 10000
theTmp = Sin(0.4)
Next


Me.Refresh
Me.Repaint
Me.Repaint
Me.Repaint
 

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

Top