Hi Bob,
Once again, thanks! Unfortunately, I couldn't get your solution to work, so I ended up creating a macro and converting it to VBA.
Here it is, in case someone can benefit from it.
DoCmd.OutputTo acOutputTable, strTable, "ExcelWorkbook(*.xlsx)", strSourceFile, False, "", ...