Macro in Word


Posted by Roy on November 26, 2001 10:08 AM

I have done a macro in word which runs when the document is opened. The macro create's value's for name, time and number. This works fine but i cannot work out how to put these value's into the word document. I have tried this on the document itself and via vb code but cannot work it out. Anyone got any suggestions as to how this can be done.

Ta
Roy



Posted by Julie random on November 26, 2001 8:57 PM

if you want to display it on the document use a FormFields and store the values them

if it is not to be displayed but needs to be stored use the DocumentProperties object
and add a custom property which you can access
later using the CustomDocumentProperties(index)