G
Guest
I have a database that has been programmed (using VBA) to be able to export
data to Excel and import data from Excel. Now that I have Access 2007, the
exporting still works as normal (when told to save the file in .xls format),
but the importing now produces an error:
Method 'Select' of object'_Worksheet' failed
I believe this error is happening when it gets to the code:
Dim rowid As Integer
Dim Excel As Object
Dim xlWorkbook As Object
Dim xlWindow As Object
Dim dateExcel As Date
Dim dateAccess As Date
Set Excel = GetObject(Me.txtXLFIle.Value)
Dim xlSheet As Object
Dim ExcelVersion As String
Excel.Sheets("Overview").Select
Set xlSheet = Excel.ActiveSheet
Again, the only thing different is that the database is being run on a PC
with Access 2007 instead of Access 2003... any help would be greatly
appreciated!
data to Excel and import data from Excel. Now that I have Access 2007, the
exporting still works as normal (when told to save the file in .xls format),
but the importing now produces an error:
Method 'Select' of object'_Worksheet' failed
I believe this error is happening when it gets to the code:
Dim rowid As Integer
Dim Excel As Object
Dim xlWorkbook As Object
Dim xlWindow As Object
Dim dateExcel As Date
Dim dateAccess As Date
Set Excel = GetObject(Me.txtXLFIle.Value)
Dim xlSheet As Object
Dim ExcelVersion As String
Excel.Sheets("Overview").Select
Set xlSheet = Excel.ActiveSheet
Again, the only thing different is that the database is being run on a PC
with Access 2007 instead of Access 2003... any help would be greatly
appreciated!