>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)
.EndOfDocument(1)
.Editcut
endwith
Cetin