brothertruffle880
asked on
Excel VBA - Public declaration of variables
I declared public variables in SHEET1 and referred to them in a procedure I was running in Module1. It didn't work.
I declared public variables in MODULE1 and referred to them in a procedure I was running in Sheet1. It did work.
Is this correct?
I thought a public variable could be declared anywhere and then referred to anywhere.
I declared public variables in MODULE1 and referred to them in a procedure I was running in Sheet1. It did work.
Is this correct?
I thought a public variable could be declared anywhere and then referred to anywhere.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Pls try.. <Not tested.>
New module->Global Pawan As Integer
Hope it helps!