The following command button code opens an instance of Excel. But how can it also open a specific file at the same time?
Private Sub cmdSpread_Click()
On Error GoTo Err_cmdSpread_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_cmdSpread_Click:
Exit Sub
Err_cmdSpread_Click:
MsgBox Err.Description
Resume Exit_cmdSpread_Click
End Sub