Bob Heygood
bheygood at abestsystems.com
Sat Jun 24 15:16:53 CDT 2006
Thanks for responding.
Your code seems to do the same as mine, the text is inserted but when I view
the list of bookmarks, it is missing.
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bryan
Carbonnell
Sent: Saturday, June 24, 2006 6:55 AM
To: Access Developers discussion and problem solving
Subject: Re: [AccessD] Access 2 Word Bookmarks
On 6/23/06, Bob Heygood <bheygood at abestsystems.com> wrote:
> Do I have to live with Access VBA wiping out my Word bookmarks as I
typetext
> in them via code?
No. If you do it like this:
doc.Bookmarks("OrderDate").Select
objWord.Selection.TypeText Format(rstOrder.Fields("OrderDate"),
"mmmm d, yyyy")
Your bookmarks won't get wiped out.
--
Bryan Carbonnell - carbonnb at gmail.com
Life's journey is not to arrive at the grave safely in a well
preserved body, but rather to skid in sideways, totally worn out,
shouting "What a great ride!"
--
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com