How do I write code to preserve variables values for future use.

P

Paul

Is there anyway to write a code to pereserve the value of a variable for the
next use. In other words, I would like to retain the last value I obtain by
an input box for the next time I run the code. Can the value be saved within
the code?
 
K

Karl E. Peterson

Paul said:
Is there anyway to write a code to pereserve the value of a variable
for the next use. In other words, I would like to retain the last
value I obtain by an input box for the next time I run the code. Can
the value be saved within the code?

No, but it can be saved in numerous other places -- the registry, an ini
file, document properties, etc.
 
D

Doug Robbins - Word MVP

Check out the System.PrivateProfileString

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 

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

Top