PC Review


Reply
Thread Tools Rate Thread

bookmarks in footer of Word doc not filled by ACCESS

 
 
=?Utf-8?B?TWFyY1ZkYg==?=
Guest
Posts: n/a
 
      3rd Jun 2005
When filling bookmarks that are specified in the FOOTER of a WORD doc,
they are not filled ! on of they are located in the body.
Is this a bug in WORD ?
Or is my code wrong ?
How to solve this issue ?
thanks for your help.

Set oApp = CreateObject("Word.Application")
oApp.Documents.Open strInputFile

With oApp.Selection
.GoTo Name:="OpdrAnoOmschr"
.Typetext Text:=Rsa("OpdrAnoOmsch")

.GoTo Name:="OpdrMainRefNum"
.Typetext Text:=Rsa("OpdrMainRefNum")
End With

oApp.Visible = True

greetings
Marc.
 
Reply With Quote
 
 
 
 
Alex Dybenko
Guest
Posts: n/a
 
      4th Jun 2005
this is not a bug
header and footer you have to handle separate, like this:

set doc=oApp.Documents.Open( strInputFile)
dim r as range
set r=doc.Sections.Last.Footers(StoryType).Range
'StoryType will define type of header, see help

so you have a reference to range, now you can use r.Find to find bookmark

bit complicated, but this is the only way i found


--
Alex Dybenko (MVP)
http://Alex.Dybenko.com
http://www.PointLtd.com



"MarcVdb" <(E-Mail Removed)> wrote in message
news1DEEE20-DA6C-4A7F-8E11-(E-Mail Removed)...
> When filling bookmarks that are specified in the FOOTER of a WORD doc,
> they are not filled ! on of they are located in the body.
> Is this a bug in WORD ?
> Or is my code wrong ?
> How to solve this issue ?
> thanks for your help.
>
> Set oApp = CreateObject("Word.Application")
> oApp.Documents.Open strInputFile
>
> With oApp.Selection
> .GoTo Name:="OpdrAnoOmschr"
> .Typetext Text:=Rsa("OpdrAnoOmsch")
>
> .GoTo Name:="OpdrMainRefNum"
> .Typetext Text:=Rsa("OpdrMainRefNum")
> End With
>
> oApp.Visible = True
>
> greetings
> Marc.



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing bookmarks in Word from Access Rose B Microsoft Access 1 25th Nov 2009 01:44 PM
Bookmarks in Footer filled from Access but doc NOT in PRINTVIEW ? =?Utf-8?B?TWFyY1ZkYg==?= Microsoft Access VBA Modules 3 7th Jun 2005 07:27 AM
Bookmarks (in FOOTER of WORD doc) not filled from within ACCESS =?Utf-8?B?TWFyY1ZkYg==?= Microsoft Access 0 3rd Jun 2005 11:12 PM
I need some help regarding Access XP, VBA ,Bookmarks Word XP =?Utf-8?B?Q2lhdlByb2dyYW1tZXI=?= Microsoft Access Form Coding 0 30th Dec 2004 09:05 PM
Bookmarks in Word and Access need repeating =?Utf-8?B?cm10dHJhY2tpbmc=?= Microsoft Word Document Management 1 17th Oct 2004 05:00 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:27 AM.