Quote:
Originally Posted by macropod
Hi tinfanide,
Attached is a workbook containing the code, and an output document generated by it. I've restructured the code slightly, but that makes no difference to the outcome. As you can see, the textbox is correctly placed in cell B2 in the Word table.
Since I don't have your 'a' document, I replaced that bit of 'open' code in the Excel workbook with the 'add' method to create a new document.
|
Yes, it was strange. It works in your document but when I pasted your codes in a.xlsm, it didn't work.
Please see the attached a.xlsm and a.docx. Many thanks for your patience.