M
mcalex
Hi all
I'm a bit new to vb, and want to know if there is a way of declaring
and setting a global variable outside of any procedures. I have a
public boolean (debugOn) that runs my debug.print statements if true
and doesn't clutter the immediate window if false. Everything's fine
as long as I set it within procedures, but I cannot convince VBA to
set it outside of a procedure, ie at declaration time. Is this
possible? and if so, how?
Many thanks
Alex
I'm a bit new to vb, and want to know if there is a way of declaring
and setting a global variable outside of any procedures. I have a
public boolean (debugOn) that runs my debug.print statements if true
and doesn't clutter the immediate window if false. Everything's fine
as long as I set it within procedures, but I cannot convince VBA to
set it outside of a procedure, ie at declaration time. Is this
possible? and if so, how?
Many thanks
Alex