Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word Bookmarks
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Miscellaneous
Thread ID:
00758718
Message ID:
00759537
Views:
24
Try:
with oWord
...
.ActiveDocument.Bookmarks("CaseReserving").Range()


>Tamar,
>
>
x1=ADDBS(SYS(5) + SYS(2003) )+"DocDir\Sif_Manual.doc"
>LOCAL oWord as word.application
>oWord=CREATEOBJECT("WORD.APPLICATION")
>
>WITH oWord
>	oDoc=oWord.Documents.Open(x1)
>	*.Selection.GoTo(wdGoToBookmark,,,"CaseReserving")
>	oRange =  .Bookmarks("CaseReserving").Range()
>
>	.Visible=.t.
>
>endwith
>
>
>This gives me the error:
>Member ookmarks does not evaluate to an object
>
>Peter
>
>>>I want to open a doc from a hyperlink and go to a specific bookmark
>>
>>Rather than going to a bookmark, you can simple access it:
>>
>>oRange = oWord.Bookmarks("MyBookMark").Range()
>>
>>
>>Tamar
Previous
Reply
Map
View

Click here to load this message in the networking platform