Chuck Bowling said:
I've got a fairly large macro in word 2002 that needs to store document
state variables inside a doc without them being accessible to regular users.
is this possible and if so, where?
If you only need the information while the document is open, you can use
module level variables. They will keep their value in between running of the
macros/procedures in the module.
If you want the information to last between opening and closings of the
document, use document variables or document properties. (Document.Variables
and Document.CustomDocumentProperties in the Word object model). Document
properties can be viewed/changes by the user from the FILE | PROPERTIES
dialog box, so you probably want to use document variables. They are only
accessible by VBA code.
-Tom