ppt用vba打开excel

2025-01-08 07:50:07
推荐回答(2个)
回答1:

Private Sub CommandButton1_CLick()
dim app as object, wb as object
set app = createobject("Excel.application")
app.visible = true
set wb = app.Workbooks.open("D:\xx.xls") '打开指定路径的工作簿
wb.save '保存Excel
app.quit '关闭Excel
End Sub

回答2:

用超链接啊