View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
NateBuckley NateBuckley is offline
external usenet poster
 
Posts: 146
Default vba dim statement with equals

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.

" wrote:

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

ex. dim intvalue=5 as integer