N
newboy18
Please help, I am getting a bit confused.
If I want a variable to be only available in the current
Sub routine then I use Dim, If I want the variable to be
available in all Modules then I use Public.
Does it matter if I make the statement is before or after
the beginning of the Sub routine?
What should I do if I want the variable to be available to
the current Module only?
The problem started when I found that a variable that had
been dimmed in 1 module was available in another Module
but the value was not.
If I want a variable to be only available in the current
Sub routine then I use Dim, If I want the variable to be
available in all Modules then I use Public.
Does it matter if I make the statement is before or after
the beginning of the Sub routine?
What should I do if I want the variable to be available to
the current Module only?
The problem started when I found that a variable that had
been dimmed in 1 module was available in another Module
but the value was not.