View Single Post
 
Old 06-25-2014, 05:53 AM
smn smn is offline Windows 7 64bit Office 2010 64bit
Novice
 
Join Date: Jun 2014
Posts: 4
smn is on a distinguished road
Default

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.
Reply With Quote