如何Word中用VBA打开Excel表格,读取其中的内容写入到Word

2024-11-29 16:23:17
推荐回答(1个)
回答1:

Set OpenExcel = CreateObject("Excel.Application")
Set Openf = OpenExcel.Workbooks.Open("c:\0.xls")
Selection.TypeText Text:=Openf.Sheets("Sheet1").Cells(3, 5)