P
Patricia D
Macros worked OK in word 2002.
Since installing Office 2003 one macro can't get past this line
Documents.Add Template:=strUserFolder & strFileToOpen
I have stepped through macro and confirmed that strUserFolder and
strFileToOpen are valid values ("H:\My documents\Microsoft Templates\" and
"XP_fax.dot"). resulting error is
Runtime error '91'.
Object variable or With block variable not set.
If i manually open the ("XP_fax.dot") template document and run the macro
with above line, then everything is OK and a new document is added based on
required template.
Is this a security issue? I have set Tools/Macro/Security to Low to see if
that helped (it didn't)
Since installing Office 2003 one macro can't get past this line
Documents.Add Template:=strUserFolder & strFileToOpen
I have stepped through macro and confirmed that strUserFolder and
strFileToOpen are valid values ("H:\My documents\Microsoft Templates\" and
"XP_fax.dot"). resulting error is
Runtime error '91'.
Object variable or With block variable not set.
If i manually open the ("XP_fax.dot") template document and run the macro
with above line, then everything is OK and a new document is added based on
required template.
Is this a security issue? I have set Tools/Macro/Security to Low to see if
that helped (it didn't)