Could someone please explain to me the benefits or differences in declaring variables the following two ways:
---------------------------------
Dim Variable, Variable2 as String
and
Dim Variable3 as String, Variable4 as String
----------------------------------
I know that the first declaration statement declares Variable as a String and Variable2 as a variant.
The second declaration statement declares both Variable3 and Variable4 as Strings.
But what are the differences and advantages/disadvantages of using the first declaration statement as compared to the second?
Thanks!
---------------------------------
Dim Variable, Variable2 as String
and
Dim Variable3 as String, Variable4 as String
----------------------------------
I know that the first declaration statement declares Variable as a String and Variable2 as a variant.
The second declaration statement declares both Variable3 and Variable4 as Strings.
But what are the differences and advantages/disadvantages of using the first declaration statement as compared to the second?
Thanks!