J
Joey Jacobs
I store values in a Access database (company details) and
want to use it throughout word but I do not want to use:
activedocuments.variables.add Name:=CompName Value:=CoName
Obviously activedocument isn't open as yet when you open
word and it must also be available when you create new
documents.
I have tried the option abovementioned as well as:
Thisdocument.variables.add etc
but to no avail. Tried placing it in the AutoNew, AutoExec
etc. macros but no go. I use the whole template as an add
in. All the above options work but not as well as I want
it to.
What I am trying to find out if it is possible to use a
program variable or field instead of a docvariable or
perhaps the registry entry but word must keep the values
until you exit word.
want to use it throughout word but I do not want to use:
activedocuments.variables.add Name:=CompName Value:=CoName
Obviously activedocument isn't open as yet when you open
word and it must also be available when you create new
documents.
I have tried the option abovementioned as well as:
Thisdocument.variables.add etc
but to no avail. Tried placing it in the AutoNew, AutoExec
etc. macros but no go. I use the whole template as an add
in. All the above options work but not as well as I want
it to.
What I am trying to find out if it is possible to use a
program variable or field instead of a docvariable or
perhaps the registry entry but word must keep the values
until you exit word.