Use a sub to change variable or constant in Module

  • Thread starter Thread starter Tim
  • Start date Start date
T

Tim

Hi folks,

Is it possible to use a sub to change a module's variable
or constant?

For instant:

I have a sub called test that has variable strSalary =
1000 and Constant csName = "Tan".

I want to create another sub called test2 that can change
the variable and constant in test when it fire.

Is it possible? How?

Thanks in advance.

Tim.
 
in case your variable is declared in mobule level, or public - you can. just
assing it a new value in test2

constant - you can't change
 
Back
Top