Inserting an Excel worksheet into a Word doc via VB
Posted on 2002-05-13
Situation: I have a VB app that creates an Excel report (via the Excel.Application stuff), and now I'd like to link that Excel report into a Word doc. The AddOleObject() method works fine, but only includes the first sheet from the Excel workbook. Can anyone point me to a method that allows me to (ideally) select which worksheet to include? Or even just a method that includes ALL the worksheets from the file?
(I'm using VB6, with Word 10 and Excel 10)