Private Sub myOpen1()
s = "e:\aBoo2.xls"
If Dir(s) <> "" Then
Set xlapp = CreateObject("Excel.Application")
Set xlBook = xlapp.Workbooks.Open(s)
xlapp.Visible = True
End If
End Sub
Private Sub myOpen2()
s = "e:\aBoo2.xls"
If Dir(s) <> "" Then
Set xlapp = CreateObject("Excel.Application")
xlapp.Workbooks.Open s
xlapp.Visible = True
End If
End Sub
[此贴子已经被作者于2016-10-12 17:42编辑过]