Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading fields in a tagged Word Document

Status
Not open for further replies.

jpaaron

Programmer
Jul 27, 2001
5
US
I have several Word Documents(forms) that were tagged using DocuCorp's DocuMaker. I am needing to make some changes to these tags to reflect a new naming convention. Is there a way to programatically read/change attributes of the tags?

Thanks in advance
 
What are the tags? I use DocVariables (Insert / Field / Document Automation / DocVariable) and to make all them visible I press ALT+F9. Maybe ALT+F9 will display your "tags". To display a field at a time, right-click on the field and select Toggle field codes.
 
They are embedded OLE tags. We are interested in stripping the tag and replacing with a form field. However, we need to be able to get the tag name so that we can name the new form field appropriately. These are documents that are normally edited by hand and the tags(fields) were created using a third party tool from DocuCorp called DocuMaker. I guess the issue is how can I access attributes of these "tags"? I'm new to VBA. I am wondering if we can access these properties with the OLEFormat method and get the name and then use the ConvertTo method to get the form field. Am I way off base here?
 
I don't know. You're way off my base though becuase I've never come close to any OLEFormat. Everthing I know came from recording macros and "stealing" the VBA code from the macro. I know VB but the Word Object Model is a different animal.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top