this is the first time I coding VBA. I need to generate a Word Doc using the data in my database (Selected Tables Only). I managed to create the Word Doc with some text inside the document using XXX.Selection.TypeText
. However I can't figure out how to include the Header and Footer for the report. I tried many ways and I can't get the results i wanted.
My question is, it is possible for me to use/open a prefined word document (with Headers and Foots) and populated my data inside that prefined word document?
Thank you!