Quote Originally Posted by fumei
First of all, please clarify if you are executing this from Excel. If so, then for sure you need to do as macropod suggests (ensuring you DO have a reference to Word!). If you are executing from Excel then:

Dim doc As Document

will be meaningless to VBA. Document is not an Excel term.
Hi Gerry,

I took white_flag's initial post at face value:
I have an excel file, that will open a word document with some bookmarks and then, try to fill those bookmarks, without delete them.
This seems to be reinforced by the reference to 'ThisWorkbook.Path'.