T
ThunderTek
I need to quantify the TransferSpreadsheet line in my code. Please Help
Dim objXL As Object
Set objXL = CreateObject("Excel.Application")
objXL.Workbooks.Open (objXL.LibraryPath & "\AtData.XLA") '.RunAutoMacros 1
objXL.Workbooks.Open "C:\AlkyLabData.xls"
objXL.Visible = False
DoCmd.TransferSpreadsheet , , "TestingImportData2", "C:\AlkyLabData.xls", True
Me.Requery
DoCmd.GoToRecord , , acLast
objXL.Quit
Set objXL = Nothing
Dim objXL As Object
Set objXL = CreateObject("Excel.Application")
objXL.Workbooks.Open (objXL.LibraryPath & "\AtData.XLA") '.RunAutoMacros 1
objXL.Workbooks.Open "C:\AlkyLabData.xls"
objXL.Visible = False
DoCmd.TransferSpreadsheet , , "TestingImportData2", "C:\AlkyLabData.xls", True
Me.Requery
DoCmd.GoToRecord , , acLast
objXL.Quit
Set objXL = Nothing