How can i retrieve a specific text from an opened word document
starting from a specific position and moving to the right until a
specific character is found,using vba?


Pls, its urgent!!!!!!!


---
Message posted from http://www.ExcelForum.com/

Re: Grabbing specific text using vba by Helmut

Helmut
Thu Aug 26 02:44:41 CDT 2004

Hi,
e.g.
Dim r As Range
Set r = Selection.Range
r.Start = 12 ' character 12 in doc
r.MoveEndUntil "!" ' next exclamation-mark
MsgBox r.Text
---
Greetings from Bavaria, Germany
Helmut Weber, MVP
"red.sys" & chr(64) & "t-online.de"
Word 2002, Windows 2000