Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parsing a Word document using bookmarks

Status
Not open for further replies.

lmclaus

Programmer
Nov 7, 2002
4
US
I have a Word requirements document that I want to parse and place just the
requirements numbers in an Excel spreadsheet. The requirements numbers
all have the format (Fnnnn) where the n's are numbers. An example would be (F0010)
They are not in any numerical order. I might have (F0010) followed by (F0015).
Each of the requirement numbers are bookmarked with the bookmark the same
name as the requirement. So if the requirement number is (F0100) the bookmark name is F0100.
I am using Windows 2000 Professional.
 
If you want the data in the bookmark then:

ActiveDocument.bookmarks("BookmarkName").Result

To put the data in an Excel cell then:

Excel.Cells(1,1) = ActiveDocument.bookmarks("BookmarkName").Result Leslie
landrews@metrocourt.state.nm.us

SELECT * FROM USERS WHERE CLUE > 0
No Rows Returned
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top