Hi...
I'm trying to use a command button to open a excel file saved on a local directory.
I can get it to open the Excel application with this code:
Private Sub xlapp_Click()
Dim stAppName As String
stAppName = "C:\Program Files\Microsoft Office\OFFICE11\excel.exe"
Call Shell(stAppName, 1)
Exit_xlapp_Click:
Exit Function
End Function
But I don't know what code I need to open the required file once the application is open.
Can someone please help? Thanks
I'm trying to use a command button to open a excel file saved on a local directory.
I can get it to open the Excel application with this code:
Private Sub xlapp_Click()
Dim stAppName As String
stAppName = "C:\Program Files\Microsoft Office\OFFICE11\excel.exe"
Call Shell(stAppName, 1)
Exit_xlapp_Click:
Exit Function
End Function
But I don't know what code I need to open the required file once the application is open.
Can someone please help? Thanks