Hi all!
Can someone show me an approach to create a Word file from an Excel file? The code will be run from an Excel97 workbook, needs to be forward compatible with later versions of Office, and needs to do the following:
1)Open a new Word document.
2)Write each cell's contents in Range("A1:A20"
as a new line in the Word document, applying the text formatting from that cell to that line.
3)Save the document as a name specified by the user via an inputbox (I can work out the mechanics of getting the filename and path from the user, I just need the syntax for the Save As in the Word object model).
Thanks for any help you can give me!
VBAjedi![[swords] [swords] [swords]](/data/assets/smilies/swords.gif)
Can someone show me an approach to create a Word file from an Excel file? The code will be run from an Excel97 workbook, needs to be forward compatible with later versions of Office, and needs to do the following:
1)Open a new Word document.
2)Write each cell's contents in Range("A1:A20"
3)Save the document as a name specified by the user via an inputbox (I can work out the mechanics of getting the filename and path from the user, I just need the syntax for the Save As in the Word object model).
Thanks for any help you can give me!
VBAjedi
![[swords] [swords] [swords]](/data/assets/smilies/swords.gif)