T
ThriftyFinanceGirl
One machine only. Not having trouble on other machines. And we even had IT
re-install MS Office. Help! Here is the code where this machine is
stopping...
It errors out on the "GetObject" area...
'name and full path to use to save the xls file
strWorkBook = "\\Nas01\dol_exch\Departments\Accounting\Sales " & _
"Tax\Sales Tax Database\TOUR\TourJE_" & intmonth & intyear &
".xls"
strTemplate = "\\Nas01\dol_exch\Departments\Accounting\Sales " & _
"Tax\Sales Tax Database\Templates\TourReallocationJE.xls"
FileCopy strTemplate, strWorkBook
blnEXCEL = False
' Replace True with False if you do not want the first row of
' the worksheet to be a header row (the names of the fields
' from the recordset)
blnHeaderRow = False
' Establish an EXCEL application object
On Error Resume Next
Set xlx = GetObject(, "Excel.Application")
If Err.Number <> 0 Then
Set xlx = CreateObject("Excel.Application")
blnEXCEL = True
End If
re-install MS Office. Help! Here is the code where this machine is
stopping...
It errors out on the "GetObject" area...
'name and full path to use to save the xls file
strWorkBook = "\\Nas01\dol_exch\Departments\Accounting\Sales " & _
"Tax\Sales Tax Database\TOUR\TourJE_" & intmonth & intyear &
".xls"
strTemplate = "\\Nas01\dol_exch\Departments\Accounting\Sales " & _
"Tax\Sales Tax Database\Templates\TourReallocationJE.xls"
FileCopy strTemplate, strWorkBook
blnEXCEL = False
' Replace True with False if you do not want the first row of
' the worksheet to be a header row (the names of the fields
' from the recordset)
blnHeaderRow = False
' Establish an EXCEL application object
On Error Resume Next
Set xlx = GetObject(, "Excel.Application")
If Err.Number <> 0 Then
Set xlx = CreateObject("Excel.Application")
blnEXCEL = True
End If