Can't set BuiltInDocumentProperties via automation?

K

kiln

Not sure what this is all about. I need to set the value in the built in
author property from Access 2000 (Word 2000). In word I can successfully
reference the properties like so:

If ActiveDocument.BuiltInDocumentProperties("Author") = "me" then
...

I've tried all the options I can come up with from Access (late bound)
and all fail with

Object doesn't support this property or method (Error 438)

objWord.BuiltInDocumentProperties("Author") = "me"
objWord.BuiltInDocumentProperties(3) = "me"

3 = wdPropertyAuthor a constant that word can use if the lib is
available.

Anyways is there some reason that the built in props can't be tweaked
from outside? Thanks
 
H

Helmut Weber

Hi,
I guess, you are trying to address the word object
instead of the document object.
 
K

kiln

Hi,
I guess, you are trying to address the word object
instead of the document object.
---
Greetings from Bavaria, Germany
Helmut Weber, MVP
"red.sys" & chr(64) & "t-online.de"
Word XP, Win 98
Oh, what a joke, thanks!
 

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