|
-
Aug 2nd, 2004, 07:42 PM
#1
Thread Starter
Lively Member
extract bookmarks value from word.doc
Anybody please help me out how to extract bookmarks values from a word doc?
I have a word document with many bookmarks field named from Text1, Text2, Text3....etc.
What I did was:
Dim w As Word.Document
Dim a As Word.Application
Dim output1 As String
Set a = New Word.Application
Set w = New Word.Document
Set w = a.Documents.Open("c:\my document\test303.doc")
output1 = w.Bookmarks.Item(1) -> This only retreive BookMarks name as "Text1" The "Text1" current contains value "ABC Company". How to extract value from "Text1"?
Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|