I pull a query off SQL Server using an access front-end. I then export the recordset to a new Excel workbook. I want to then use excel to run code that I have in Access. It
If I understood you correctly, that you copied a code from Access to Excel and run the same code in Excel, in both cases the code manipulates the spreadsheet, and the one in Excel is fast, and the other in Access is slow, you can try the following:
ActiveWorkbook.Windows(1).Visible = False
), check also hereI hope this helps.
Normally, automation is much slower than a macro (vba code). The same applies to other applications, eg. MS Word.