PDA

View Full Version : Solved: BuiltinDocumentProperties Index



samuelwright
11-25-2005, 06:55 AM
Hi all,

does anyone know the index number for the hyperlink base value of a Word Document Properties

ie to write to the title and the Keywords of the document properties, I would write:


Selection.Document.BuiltInDocumentProperties(1)= expression
Selection.Document.BuiltInDocumentProperties(4)= expression


What number do I need for the Hyperlink base? Ive tried loads of different ones to no avail (I know it isnt 1-12, 14-16, 18, or 20-24. Im not sure what the others do but it isnt writing the document path to where I want!!)

Any ideas? Ive also tried looking in the Visual Basic Object Browser, but cannot find anything?

samuelwright
11-25-2005, 07:06 AM
Err, never mind, kinda solved this one.....sorry for wasting your time...:doh:


I just wrote wdHyperlinkBase instead of the index number

fumei
11-25-2005, 07:09 AM
Who cares? Just write to it.
ActiveDocument.BuiltInDocumentProperties("Hyperlink base") _
.Value = "whatever qualified path you want"

fumei
11-25-2005, 07:10 AM
ooops, we posted at the same time. Glad you figured it out.