EAK
July 17th, 2001, 01:37 PM
Runtime error '458', variable uses an automation type not supported in visual basic.
below is code that works on my windows98 p400 system. this code was working on another person's '98 but, has stopped working after i uninstalled and reinstalled the application today. i have deployed dcom98.exe and included mdac_typ.exe in the deployment in an effort to find the problem.
does anyone know what dependants may be missing?
my deployment includes:
MSEXCL35.DLL, MSSTDFMT.DLL,EXCEL8.OLB,VB5DB.DLL
public Sub ExportToExcel()
Dim sText as string
Dim i as Integer, k as Integer, NoSpaces as Boolean
Dim xlApp as Excel.Application
Dim xlBook as Excel.Workbook
Dim xlSheet as Excel.Worksheet
Dim SelStmt as string
Dim rs as Recordset
Dim FName as string
Dim FileIsThere as Boolean
Dim sTmp as string
'...
set xlApp = new Excel.Application
set xlBook = xlApp.Workbooks.Add(GetQPath & "Template.xlt")
set xlSheet = xlBook.Worksheets(1)
rsQuotes.FindFirst "[QID] = " & CStr(gQID)
CID = CInt(rsQ!CID)
sText = rsQ!QNumber
With xlSheet
'== enter heading:
thank you
Elizabeth
below is code that works on my windows98 p400 system. this code was working on another person's '98 but, has stopped working after i uninstalled and reinstalled the application today. i have deployed dcom98.exe and included mdac_typ.exe in the deployment in an effort to find the problem.
does anyone know what dependants may be missing?
my deployment includes:
MSEXCL35.DLL, MSSTDFMT.DLL,EXCEL8.OLB,VB5DB.DLL
public Sub ExportToExcel()
Dim sText as string
Dim i as Integer, k as Integer, NoSpaces as Boolean
Dim xlApp as Excel.Application
Dim xlBook as Excel.Workbook
Dim xlSheet as Excel.Worksheet
Dim SelStmt as string
Dim rs as Recordset
Dim FName as string
Dim FileIsThere as Boolean
Dim sTmp as string
'...
set xlApp = new Excel.Application
set xlBook = xlApp.Workbooks.Add(GetQPath & "Template.xlt")
set xlSheet = xlBook.Worksheets(1)
rsQuotes.FindFirst "[QID] = " & CStr(gQID)
CID = CInt(rsQ!CID)
sText = rsQ!QNumber
With xlSheet
'== enter heading:
thank you
Elizabeth