Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / February 2005

Tip: Looking for answers? Try searching our database.

place value of bookmark in footer

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
erik - 23 Feb 2005 15:41 GMT
hello!

i wrote the following lines to put the value of a bookmark in the footer of
the document.

Sub voettekst()

Dim vttkst As Range
Set vttkst = Bookmarks("actie1").Range

ActiveDocument.Sections(1).Footers(wdHeaderFooterPrimary).Range.Text = vttkst

End Sub

But the output of this is: FORMTEXT IN02021 (where is IN02021 the value of
the bookmark). I don't want to see 'FORMTEXT'.

Does anybody know how to use this program without getting FORMTEXT in the
output?

thnx!
erik
Jezebel - 23 Feb 2005 19:42 GMT
ActiveDocument.Sections(1).Footers(wdHeaderFooterPrimary).Range.Text =
mid$(vttkst,10)

> hello!
>
[quoted text clipped - 20 lines]
> thnx!
> erik

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.