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 / January 2005

Tip: Looking for answers? Try searching our database.

Bookmark

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Quantum - 27 Jan 2005 14:19 GMT
What is wrong with this? What is the proper syntax for inserting text into
the bookmark?

Private Sub OptionButton1_Click()
ActiveDocument.Bookmarks(Cholesterol).Range.InsertAfter "your cholesterol is
fine."


End Sub
Dave Lett - 27 Jan 2005 14:26 GMT
Hi,

You need quotation marks around the name of your bookmark:

ActiveDocument.Bookmarks("Cholesterol").Range.InsertAfter "your cholesterol
is fine."

HTH,
Dave

> What is wrong with this? What is the proper syntax for inserting text into
> the bookmark?
[quoted text clipped - 4 lines]
>
> End Sub
Jonathan West - 27 Jan 2005 14:29 GMT
> What is wrong with this? What is the proper syntax for inserting text into
> the bookmark?
[quoted text clipped - 5 lines]
>
> End Sub

if the bookmark is named Cholesterol, then you need to put quotes round the
name

Signature

Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup

Jezebel - 27 Jan 2005 21:26 GMT
Apart from the issue with quoting the name, your instruction is inserting
your text AFTER the bookmark, not into it. Is that what you intend?

> What is wrong with this? What is the proper syntax for inserting text into
> the bookmark?
[quoted text clipped - 5 lines]
>
> End Sub

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.