0

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.

1
  • 2
    Declare it as a PUBLIC variable in a module. INTERESTING READ Commented Sep 21, 2013 at 5:00

1 Answer 1

1

If it's only ever the same value.

Public Const <variable> as <type> = x

Example.

Public Const numberofbats as Long = 6
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.