Glory
Well-known Member
- Joined
- Mar 16, 2011
- Messages
- 640
I don't understand why this is happening. This sub calls a function if a certain Boolean variable is "Not" true. The problem is that this variable is always Empty when the procedure is called. This makes no sense to me.
The idea here is that the function runs once, and then doesn't run again unless the workbook is closed and reopened.
Code:
Public Static Sub caller()
If Not theVariable Then Populate
theVariable = True
End Sub
The idea here is that the function runs once, and then doesn't run again unless the workbook is closed and reopened.