populating document properties from text in document 
Author Message
 populating document properties from text in document

i've built a macro that imports data from a document of
specific format to the document's property box.  some of
the data goes into custom document fields.  an error
occurs if this field already exists, therefore making
rerunning the macro impossible.

what i'm looking for is a command to look for the custom
field, and if it exists, delete it.  any help would be
appreciated.



Tue, 07 Dec 2004 00:56:22 GMT  
 populating document properties from text in document
on error resume next
activedocument.customdocumentproperties("MyProp").delete
err.clear


Quote:
> i've built a macro that imports data from a document of
> specific format to the document's property box.  some of
> the data goes into custom document fields.  an error
> occurs if this field already exists, therefore making
> rerunning the macro impossible.

> what i'm looking for is a command to look for the custom
> field, and if it exists, delete it.  any help would be
> appreciated.



Tue, 07 Dec 2004 06:25:33 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Accessing Office Custom Document Properties from Closed Documents/Workbooks

2. Saving page breaks from Word documents to text documents

3. finding text in a document and split document

4. Macro to insert text or document into active document

5. Concerting word document to text document

6. Putting bookmark text in document properties field

7. Custom Document properties and text boxes.

8. Custom DB properties and Document Properties (A97)

9. Populate a UserForm from document

10. How to populate the list box and how to return to specific part of document

11. Using SHAddToRecentDocs to populate Documents menu

12. Using SHAddToRecentDocs to populate Documents menu

 

 
Powered by phpBB® Forum Software