mac7attack
Technical User
Hello,
I am trying to export a Excel spreadsheet into a Access database using the TransferSpreadsheet command. I am running a macro in Excel 2003 to format the open spreadsheet then export it to Access. I have gotten the Transfer command to work in Access VBA but not in Excel.
The script line I am using in Excel is:
Do I have to create a Database object before running the command or is there another way of doing it?
Thanks
Matt
I am trying to export a Excel spreadsheet into a Access database using the TransferSpreadsheet command. I am running a macro in Excel 2003 to format the open spreadsheet then export it to Access. I have gotten the Transfer command to work in Access VBA but not in Excel.
The script line I am using in Excel is:
Code:
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "TestNameTest", "db1.mdb", True
Do I have to create a Database object before running the command or is there another way of doing it?
Thanks
Matt