Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Boolean Variable Definition
Hi, Quick question here, I hope
how do I keep a boolean variable = true and keep that value for every sub or function that might use it? im having problems when going from one sub/function to another. The variable keeps getting reset to = "Empty". Do i actually have to pass it from function to function? What if its used in a sub? or am i missing something? Thanks |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Boolean Variable Definition
Hi
Declare it as Public Public MyVar As Boolean Sub mysub() MyVar = True End Sub Mike "James" wrote: Hi, Quick question here, I hope how do I keep a boolean variable = true and keep that value for every sub or function that might use it? im having problems when going from one sub/function to another. The variable keeps getting reset to = "Empty". Do i actually have to pass it from function to function? What if its used in a sub? or am i missing something? Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
VBA variable definition help needed. | New Users to Excel | |||
Excel question with variable definition | Excel Programming | |||
[variable] definition | Excel Programming | |||
variable range definition | Excel Programming | |||
UserForm not passing Boolean variable | Excel Programming |