Azmina has attended:
Excel VBA Intro Intermediate course
Variables
when do you declare a variable privately?
RE: variables
Hi Azmina
Declaring a variable Private is used to emphasize that only the area in which it was declared can see it
So at the Modular level (In the Declarations area) both of the following variables can be seen by all the Procedures in the module.
Dim sUserName as String
Private iCounter as Integer
Hope this helps
Carlos