vba dim statement with equals

  • Thread starter Thread starter tonyrulesyall
  • Start date Start date
T

tonyrulesyall

Is there a way to combine a dim statement with setting the initial
value?

ex. dim intvalue=5 as integer
 
I could be wrong, and it'd be interesting if someone were to tell me
different, but I'm 85 percent sure you can't do that.

Constants are declared with an initial value, but that's because they're
constants.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top