Reputation: 11
My problem is that I've a String variable strTemp5. I just want to give it a value once in my public sub and then use it in 33 normal subs. But it appears that I've to define it everytime right now. Is there any way I can use the same String by only defining it once.
Upvotes: 0
Views: 104
Reputation: 11
If it's only ever the same value.
Public Const <variable> as <type> = x
Example.
Public Const numberofbats as Long = 6
Upvotes: 1