VBA form and non graphic members
Visual Basic
1
Posts
1
Posters
0
Views
1
Watching
-
I'd like to have some members in my form (boolean/String etc) but I can seam to access them. This is the code part of my progress dialoge.
Option Explicit
Dim Abort As Boolean
Private Sub UserForm_Activate()
Abort = False
' Set the width of the progress bar to 0.
Progress.LabelProgress.Width = 0
Application.ScreenUpdating = False
DoEvents
If (bRockwellPhases And Not Abort) Then
Call generateRockwellPhases
End If
Hide
End SubSub UpdateProgressBar(PctDone As Single)
...
End SubSub setAbort()
Abort = True
End SubSo problem is, how do I declare "Abort" correctly and how do I access it from UserForm_Activate() and setAbort() Best regards Henrik....