G
Guest
Hi,
First off: I'm totally a noob!
I want to program this in word 2002:
if the document is a .dot file then DocCode (a field name) is DocCode
if the document is a .doc file then DocCode = filename
This way the document always has the right name when printed. (a .dot
renames it self when opened to document1)
I found out that you can determine if the file is a .dot by
ActiveDocument.Type = wdTypeTemplate but I don’t no where to go from here.
Can any body help me?
First off: I'm totally a noob!
I want to program this in word 2002:
if the document is a .dot file then DocCode (a field name) is DocCode
if the document is a .doc file then DocCode = filename
This way the document always has the right name when printed. (a .dot
renames it self when opened to document1)
I found out that you can determine if the file is a .dot by
ActiveDocument.Type = wdTypeTemplate but I don’t no where to go from here.
Can any body help me?