A VBA macro that generates invoices must fill a Word template with data from Excel. Which approach enables this cross-application automation?
-
A
Copy Excel cells and use SendKeys to paste into Word
-
B
Use Word Automation via CreateObject('Word.Application') to open the template and use Find/Replace or bookmarks to substitute data fields
-
C
Export Excel data to CSV and import it into Word manually
-
D
Use Excel's Mail Merge feature triggered by a VBA macro in Word