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 / March 2006

Tip: Looking for answers? Try searching our database.

Code conversion from Wordbasic

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John - 22 Mar 2006 06:31 GMT
Hi,

Can anyone suggest why the first line works fine and the second ones fails
to find the bookmark?

WordBasic.WW7_EditGoTo "bmOrdPresent"

Selection.GoTo what:=Bookmarks, Name:="bmOrdPresent"

Thanks,

John
Jezebel - 22 Mar 2006 07:35 GMT
Because "Bookmarks" is not a defined constant in VBA. One of the benefits of
VBA is that you can put the cursor on any keyword (such as GoTo) and press
F1 to see the Help for that keyword. Which would show you that you want --

What:=wdGoToBookmark.

> Hi,
>
[quoted text clipped - 8 lines]
>
> John
John - 22 Mar 2006 09:53 GMT
Thanks. Explanation very helpful.

John

> Because "Bookmarks" is not a defined constant in VBA. One of the benefits
> of VBA is that you can put the cursor on any keyword (such as GoTo) and
[quoted text clipped - 15 lines]
>>
>> John
 
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.