tiredofit
Well-known Member
- Joined
- Apr 11, 2013
- Messages
- 1,798
- Office Version
- 365
- 2019
- Platform
- Windows
In Module1, I have:
In ClsVariables, I have:
The problem is in Module2, it does not regonise MyFlag has already been set, ie:
How can I overcome this?
Do I have to add:
in Module2?
Code:
Global MyFlag As ClsFlag
In ClsVariables, I have:
Code:
Set MyFlag = New ClsFlag
MyFlag.Flag = False
The problem is in Module2, it does not regonise MyFlag has already been set, ie:
Code:
If MyFlag.Flag Then 'FAILS HERE
How can I overcome this?
Do I have to add:
Code:
Set MyFlag = New ClsFlag
in Module2?