ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   export excel data to a word template using a macro (https://www.excelbanter.com/excel-programming/326059-export-excel-data-word-template-using-macro.html)

Ross1

export excel data to a word template using a macro
 
I am trying to poulate a word document with excel data using a macro

Claud Balls

export excel data to a word template using a macro
 
I never found an efficient way to do this, I did find a hokey way to do
this though:

In your word template run a macro that open your excel file.
In the excel create a macro that runs when opened. In the excel macro,
write what ever groups of text you need to multiple temporary text
files, and have your macro close with out saving changes. Then have
your word macro import the temp files one at a time where ever you want
them, then delete them from the hard drive.


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


All times are GMT +1. The time now is 12:20 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com