Hi.
I have a bookmark which is inside a textframe .... I am trying to write
something to it and I get an error that it can't find the bookmark - is it
possible at all??
it works fine with a 'normal' bookmark
(accessing it via vba from access 2000)
Thanks,
Gina
Shouldn't be a problem, unless there's something odd about how you are
getting the bookmark reference. However, a better way to put information
into a document if you're using automation, is to use
CustomDocumentProperties and DocProperty fields. Then your bookmarks
problem, whatever it is, will go away. (Code is simpler, too.)
> Hi.
>
[quoted text clipped - 8 lines]
> Thanks,
> Gina
Gina - 27 Feb 2005 00:28 GMT
Hi Jezebel.
thanks for your answer.
well, I thought so as well ...that it shouldn't be a problem.
but as soon as I reference a bookmark which is inside a textframe I get an
error saying that word can't find the specified bookmark.
Unfortunately I am not familiar with that vba stuff in word and in general
so I would be grateful for an example piece of code as to how accessing the
things (CustomDocumentProperties and DocProperty fields.) you suggested.
Gina
> Shouldn't be a problem, unless there's something odd about how you are
> getting the bookmark reference. However, a better way to put information
[quoted text clipped - 14 lines]
> > Thanks,
> > Gina
Jezebel - 27 Feb 2005 04:03 GMT
To do this with document properties --
1. Define a custom document property for each item of data you need to deal
with, using File > Properties > Custom. Insert a dummy value in each case.
If you define the properties in a template they are inherited by docouments
created from the template.
2. In place of the bookmarks in your document, insert DocProperty fields.
3. In your code, instead of setting the value of the bookmark, set the value
of the property --
ActiveDocument.CustomDocumentProperties("Property Name").Value = ....
4. When you've set all the property values, update the fields.
> Hi Jezebel.
>
[quoted text clipped - 29 lines]
>> > Thanks,
>> > Gina
Gina - 01 Mar 2005 14:38 GMT
Thanks Jezebel, for your explanation.
Doesn't sound more difficult to define than the bookmark stuff.
gonna try this!!!
Gina
> To do this with document properties --
>
[quoted text clipped - 45 lines]
> >> > Thanks,
> >> > Gina