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.