Hello Peter,
I first thought this might be a binding issue. Your code uses early binding. I wrote the code below to use late binding and inserted a breakpoint at the WordApp.Close statement. The first time I ran the code I got a different error "Object doesn't support this property or method." I ran the code again and it worked. However, when it executed the WordApp.Quit statement, my anti-virus program alerted me that "Excel was running a suspicious script". I am using Excel 2000. This appears to be a genuine bug. Unfortunately, I don't know of any work arounds for it.
Sincerely,
Leith Ross
Bookmarks