试验一下如下代码:
Sub Test()
Dim my_Object As Object
Set my_Object = GetObject("XX/XX/xx.XLSX")
ActiveDocument.Tables.Add Range:=Selection.Range, NumRows:=2, NumColumns:= _
2, DefaultTableBehavior:=wdWord9TableBehavior, AutoFitBehavior:= _
wdAutoFitFixed
With ThisDocument.Tables(1)
ThisDocument.Tables(1).Cell(1, 1).Range = my_Object.Worksheets(1).Cells(1, 1).Value
my_Object.Close
End Sub
貌似从Excel里的vba往Word里写方便些
excel输出数据帮实现