G
Guest
Good morning,
I'm trying to run Excel and open a workbook or 2 for my manager. It's from
a command button on a form that will export the query to Excel, then open the
workbooks.
I know the code for the exportation of the query to Excel. I can get Excel
to open. Just not with opening a file. Can someone please help me with the
code?
Private Sub Command32_Click()
DoCmd.SetWarnings False
Call Shell("c:\program files\microsoft office\office\excel.exe",
vbMaximizedFocus)
Workbooks.Open ("c:\documents and settings\dwittma\my documents\New Jersey
CIPINVs.xls")
End Sub
Thank you!
Derek
I'm trying to run Excel and open a workbook or 2 for my manager. It's from
a command button on a form that will export the query to Excel, then open the
workbooks.
I know the code for the exportation of the query to Excel. I can get Excel
to open. Just not with opening a file. Can someone please help me with the
code?
Private Sub Command32_Click()
DoCmd.SetWarnings False
Call Shell("c:\program files\microsoft office\office\excel.exe",
vbMaximizedFocus)
Workbooks.Open ("c:\documents and settings\dwittma\my documents\New Jersey
CIPINVs.xls")
End Sub
Thank you!
Derek