skull_eagle
Board Regular
- Joined
- Mar 25, 2011
- Messages
- 89
Hi, I'm setting up a sort of wizard where you make selections and move onto the next userform. There are 4 userforms in total and I want to set global variables to record the selections along the way.
I've set public variables outside of any sub or function
Public strFunction As String
Public strProcess As String
I've then set their values inside the sub
strFunction = ComboBox_Function.Value
strProcess = ListBox_Process.Value
When I try and use these variables at a later time to collate the results I get nothing
Public Sub UserForm_Initialize()
CF1.Caption = strFunction
CF2.Caption = strProcess
CF3.Caption = strSL
CF4.Caption = strSSL
End Sub
Any help would be most appreciated.
Thanks
I've set public variables outside of any sub or function
Public strFunction As String
Public strProcess As String
I've then set their values inside the sub
strFunction = ComboBox_Function.Value
strProcess = ListBox_Process.Value
When I try and use these variables at a later time to collate the results I get nothing
Public Sub UserForm_Initialize()
CF1.Caption = strFunction
CF2.Caption = strProcess
CF3.Caption = strSL
CF4.Caption = strSSL
End Sub
Any help would be most appreciated.
Thanks