Hi everyone,
I am trying to make an exportation to Excel and it's showing an error:
'************************
Private Sub Excelcmd_Click()
'Access 365
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "Test", "C:\Users\XXXX\Desktop\Book1.xlsx", True
'************************
(error 3011: the microsoft office access database engine could not find the object)
it's weird because when I see into the folder on the root the file is there, once I want to open it, it shows is damaged
Any idea how to correct this?
And second question, does somebody know how to get alternative to choose the root instead of getting predefinded? ( "C:\Users\XXXX\Book1.xlsx")
Thanks in advance for the help!!!!