D
Diane
I have created a vb program that creates an msword 2003 document based on a
template named sec1.
example:
1) oDoc = oWord.Documents.Add("C:\template\sec1.dot")
code is processed that inserts text from other documents:
2) oWord.Selection.TypeText(Text:="DOCVARIABLE myfilepath")
Some of the inserted documents include a docvariable “giftlineâ€. My code
processes the information that should update the text in the giftline
docvariable, although a strange thing has happened, I am now getting the same
repeated text in my giftline docvariable for all documents that DO NOT
REQUIRE THE GIFTLINE INFO.
After debugging my program, I have found that when I open the base template
“sec1†(from line #1 above) the strange text appears in my giftline
docvariable, I can visibly see it in my debugger. So, my question is, it
appears that the “docvariable giftline†resides SOMEWHERE in my template.
Without deleting this template and rebuilding it, is it possible to see this
docvariable, (similar like the macros, or the autotext) – if so, I don’t know
where.
template named sec1.
example:
1) oDoc = oWord.Documents.Add("C:\template\sec1.dot")
code is processed that inserts text from other documents:
2) oWord.Selection.TypeText(Text:="DOCVARIABLE myfilepath")
Some of the inserted documents include a docvariable “giftlineâ€. My code
processes the information that should update the text in the giftline
docvariable, although a strange thing has happened, I am now getting the same
repeated text in my giftline docvariable for all documents that DO NOT
REQUIRE THE GIFTLINE INFO.
After debugging my program, I have found that when I open the base template
“sec1†(from line #1 above) the strange text appears in my giftline
docvariable, I can visibly see it in my debugger. So, my question is, it
appears that the “docvariable giftline†resides SOMEWHERE in my template.
Without deleting this template and rebuilding it, is it possible to see this
docvariable, (similar like the macros, or the autotext) – if so, I don’t know
where.