Have you done all that the instructions in post #2 say you need to do? Did you
• set a reference to Excel?
• edit the StrWkBkNm line to point to your workbook-
StrWkBkNm = "C:\Users\" & Environ("Username") & "\Documents\Workbook Name.xls"
• edit the StrWkShtNm line to point to your worksheet-
StrWkShtNm = "Sheet1"
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|