Kim Wiggins
kimjwiggins at yahoo.com
Tue Jul 26 16:16:47 CDT 2005
Bryan, thanks but I found the problem. It was odd quotes that I had around the bookmark that was causing it not to recognize the bookmark. I have corrected it and it works. Thanks Bryan Carbonnell <carbonnb at gmail.com> wrote:On 25/07/05, Kim Wiggins wrote: > I am really trying to make this word Automation work. I am using VB to write the code but it will not recognize the bookmarks. It opens the document and everything like it should but it will not recognize the book mark. The error I get is this: > > the requested member of the collection does not exist > > It bombs out at the green highlighted code and I can't understand why. Any help would be greatly appreciated. Formatting doesn't come through to the list. Which line is causing the problem? This one? > objWD.ActiveDocument.Bookmarks.Item("AT").Range.Text = frmAircraftWO.txtAircraftType If so, is AT the name of a bookmark in the main body of the document? Or is it in a header or footer? Are you sure the active document the one referenceced in the variable doc? -- 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 __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com