Quote:
Originally Posted by tddfs
The code from the link - Sub UpdateBookmark - It seem as though a custom document property would be the best, but I don't see how it ties into the code from the link?
|
Well, given that the code in the link is for updating a bookmark, which is what your initial post was apparently trying to do, one shouldn't expect it to work with a custom document property. Have you even looked at any code samples dealing with writing to custom document properties or variables? For example, to add and update :
•
Custom Document Properties, see:
http://support.microsoft.com/kb/212618/
•
Document Variables, see:
http://support.microsoft.com/kb/306281/
Quote:
Originally Posted by tddfs
Reviewing your link I was hoping this would work
Still not working though I would like to think my thought process is correct based on what you have done in the prior link.
|
I can't see how you could think the code you've posted has anything to do with what's in the link, or with updating a custom document property.
I think you need to spend a little time working out how one uses the various methods available for populating a document. When you decide what you want to work with, be that a bookmark, a content control, a custom document property, a table cell, a specified paragraph (via its index #), etc., then stick with code related to that method rather than trying to use code designed for something else.
As for:
Quote:
On the bright side my error code is now 13 so at least that is going down.
|
That suggests you don't understand what error codes are about...