Enduring Variable

D

donbowyer

Is there any way to store a numeric variable value somewhere in Word, so that
the value remains after Word is closed, and is available next time Word is
opened?
 
G

Greg Maxey

You can store variable information in a .txt file or the windows registry.
See PrivateProfileString in VBA Help.
 
M

ML

If you want it to be associated with a specific Word document then you can
save it in a custom document property.
 
J

Jezebel

In addition to the methods suggested by the other posters, you can use a
customproperty stored in normal.dot --

templates("normal.dot").CustomDocumentProperties("MyProperty") = ...
 
D

donbowyer

Many thanks to all who contributed to my Enduring Variable question.
From a combination of your inputs, I have a solution, based largely on the
creation of an "external" *.txt file.
 

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