PDA

View Full Version : Variables



Vreg
05-08-2011, 01:06 PM
Ok people, how can I make variables communicate with eachother from different private subs. For example I'm telling the form_onload:

Dim this As Boolean

this = False

And then when a button get's clicked I want to check:

If this = False Then

etc etc

But for some reason, I'm new to VBA, every public sub is independant please help me please.

Vreg
05-08-2011, 01:10 PM
SOLVED!!!!! I DID SOME SEARCHING ON THESE FORUMS AND I FOUND THAT I HAD TO DECLARE IT TO PUBLIC YEEEEEEEEEEEEEES