Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Finding a Word Bookmark via OLE Automation from Visual F
Message
From
26/03/1998 12:45:44
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00087325
Message ID:
00087352
Views:
30
>I know that this is probably something to be posted on a VB forum, but you people are just so darn good!
>
>I have a class which opens a Word document via OLE automation, and I need to be able to use VB to find out if a particular bookmark is in the document. If it is, go to it and delete everything after it.
>
>Does anyone know the VB commands to do this?
>
>Thanks in advance,
>
>Ben Holton
Well,
VB syntax is near same. This is VFP syntax :
with oWord
	.editbookmark("TempBookmark",,,,1)	&& Goto bookmark "TempBookmark"
	.EndOfDocument(1)       		&& Goto end of doc
	.Editcut
endwith
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform