P
Pam
Hi,
I have a user that can't get the command button to work with the following
code to export to excel - nothing happens, no error msg or anything.
Can someone please tell me what to look for to make it work on his computer?
Private Sub Command10_Click()
Const acSpreadsheetTypeExcel9 = 8
Dim strFolderAndFile As String
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9,
"qStatusDayCountAllJobs", "C:\DELTADB\AllJobs.xls"
Dim oApp As Object
Set oApp = CreateObject("Excel.Application")
oApp.Workbooks.Open "C:\deltadb\AllJobs.xls"
oApp.Visible = True
End Sub
Thanks in advance,
Pam
I have a user that can't get the command button to work with the following
code to export to excel - nothing happens, no error msg or anything.
Can someone please tell me what to look for to make it work on his computer?
Private Sub Command10_Click()
Const acSpreadsheetTypeExcel9 = 8
Dim strFolderAndFile As String
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9,
"qStatusDayCountAllJobs", "C:\DELTADB\AllJobs.xls"
Dim oApp As Object
Set oApp = CreateObject("Excel.Application")
oApp.Workbooks.Open "C:\deltadb\AllJobs.xls"
oApp.Visible = True
End Sub
Thanks in advance,
Pam