You can use a constant...
Const intValue As Integer = 5
However, you will then not be allowed to change it while code is running.
--
Jim Cone
Portland, Oregon USA http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)
<[email protected]>
wrote in message
Is there a way to combine a dim statement with setting the initial
value?
ex. dim intvalue=5 as integer
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.