Changing type of custome document properties

S

Stephen English

I posted this the other day but it never appeared

I have many documents where I want to change a custom document property with type Date to type text. I use the WriteProps / ReadProps code from the MVP site
Overwriting it with the new type does not work and I have worked out that I can do it manually by deleting the cDP and then rewriting it
My question is how do I delete a CDP by code please
Thank
Stephen
 
J

Jezebel

Doc.CustomDocumentProperties("MyProp").Delete

Use error trapping or 'on error resume next' if there's a possibility the
property doesn't exist.




Stephen English said:
I posted this the other day but it never appeared.

I have many documents where I want to change a custom document property
with type Date to type text. I use the WriteProps / ReadProps code from the
MVP site.
Overwriting it with the new type does not work and I have worked out that
I can do it manually by deleting the cDP and then rewriting it.
 
S

Stephen English

Hi Jezebe
Thank you so much for your rapid response
So easy and so simple when you know how
Cheer
Stephen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top