Ok, now it is working =D
All I had to change was this delete and one letter.
earlier: wb.worksheets.delete "Results"
now: wb.worksheets("Results").Delete
Thank you very very much oharab, I really appreciate this.
Sorry, maybe I was not clear enough.
I tried this earlier:
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel97, "Results", "C:\windows\desktop\project\fiberdb.xls", False, "Results"
This adds new sheet to this FiberDB file named as "Results1". I...
Is it possible to delete/overwrite Excel spreadsheet from Access with vba? And how could that be done?
Now when I export table from Access to Excel, it just renames it like this: Results -> Results1.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.