M
MVP - WannaB
Hi, and thank you for all your help.
I've created a command button that opens EXCEL (that's simple) but how can I
modify the VBA as to exactly which file to open?
Here is the VBA that was created when I created the CMD button;
' USING XL 2003, SO I COMMENTED OUT THE XL 97 LINES
Private Sub CMD_SNL_Click()
On Error GoTo Err_CMD_SNL_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_CMD_SNL_Click:
Exit Sub
Err_CMD_SNL_Click:
MsgBox Err.Description
Resume Exit_CMD_SNL_Click
End Sub
I've created a command button that opens EXCEL (that's simple) but how can I
modify the VBA as to exactly which file to open?
Here is the VBA that was created when I created the CMD button;
' USING XL 2003, SO I COMMENTED OUT THE XL 97 LINES
Private Sub CMD_SNL_Click()
On Error GoTo Err_CMD_SNL_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_CMD_SNL_Click:
Exit Sub
Err_CMD_SNL_Click:
MsgBox Err.Description
Resume Exit_CMD_SNL_Click
End Sub