#i would just like to point out that the above code was downloaded from the Wrox website in the spreadsheet format and ran from the spreadsheet that contained it.
However, since then, I have copied and pasted the same section of code above into another independent spreadsheet and run from there.
This time, though, I get another error message that says;
User-defined type not defined
The debuger stops at this line of code;
Dim wdApp As Word.Application
The code looks Ok to me.
Am I missing something obvious?