Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word Bookmarks
Message
From
28/02/2003 12:52:43
 
 
To
27/02/2003 13:48:03
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Miscellaneous
Thread ID:
00758718
Message ID:
00759517
Views:
19
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
Peter Cortiel
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform