M
Marcos
Hi,
I am using vb to walk through a word doc. when it encounters a tag it either
replaces the tag with content or opens up the document that the tag
references. In this new document, it looks for tags and continues the
process.
After processing a document, I would like to return the formatted, modified
content of the back to the calling function to be inserted into the word doc
that had the tag.
I am not sure how to pass the modified content back to the calling function.
I was thinking that I could copy the word doc's content to the clipboard
and paste it into the original document, but the content could become very
big.
Another option would be to save the modified doc, then the calling function
would open it and insert the contents where the tag was before. But I am not
sure how to do that.
This may be a bit confusing. Basically I have a recursive function that
walks through a word doc and at times may open another doc, process it and
return the contents for insertion into the first doc.
any help is appreciated.
-Marcos
I am using vb to walk through a word doc. when it encounters a tag it either
replaces the tag with content or opens up the document that the tag
references. In this new document, it looks for tags and continues the
process.
After processing a document, I would like to return the formatted, modified
content of the back to the calling function to be inserted into the word doc
that had the tag.
I am not sure how to pass the modified content back to the calling function.
I was thinking that I could copy the word doc's content to the clipboard
and paste it into the original document, but the content could become very
big.
Another option would be to save the modified doc, then the calling function
would open it and insert the contents where the tag was before. But I am not
sure how to do that.
This may be a bit confusing. Basically I have a recursive function that
walks through a word doc and at times may open another doc, process it and
return the contents for insertion into the first doc.
any help is appreciated.
-Marcos