S
Skip Bisconer
I would like to open a specific workbook with this code. Can someone tell
what I should insert. Everything I have tried doesn't work, possibly because
I don't know what I am doing.
Private Sub OpenExcel_Click()
On Error GoTo Err_OpenExcel_Click
Dim oApp As Object
Set oApp = CreateObject("Excel.Application")
oApp.Visible = True
'Only XL 97 supports UserControl Property
On Error Resume Next
oApp.UserControl = True
Exit_OpenExcel_Click:
Exit Sub
Err_OpenExcel_Click:
MsgBox Err.Description
Resume Exit_OpenExcel_Click
End Sub
what I should insert. Everything I have tried doesn't work, possibly because
I don't know what I am doing.
Private Sub OpenExcel_Click()
On Error GoTo Err_OpenExcel_Click
Dim oApp As Object
Set oApp = CreateObject("Excel.Application")
oApp.Visible = True
'Only XL 97 supports UserControl Property
On Error Resume Next
oApp.UserControl = True
Exit_OpenExcel_Click:
Exit Sub
Err_OpenExcel_Click:
MsgBox Err.Description
Resume Exit_OpenExcel_Click
End Sub