Thanks again, Macropod. I enabled the Word object model and updated the file path & name. It's giving me the following error message:
Run-time error '-2147023170 (800706be)':
Automation Error
The remote procedure call failed.
When I debug it, it highlights the following line of code:
StrTxt = StrTxt & " " & .Duplicate.Information(wdActiveEndPageNumber)
I searched around and saw someone was having similar problems. I tried setting some of the variables (e.g., wdApp and wdDoc) as objects but still no luck.
|