I have a project in which I export a query to excel using the OutputTo method
DoCmd.OutputTo acOutputQuery, stDocName, acFormatXLS, Filename, True
Each time that I do this I create a new spreadsheet/workbook w/ a file name specific to the output. Once in Excel I run a module which formats the spreadsheet. The name of the module function is
Public Function UpdateMatrix(tabname As String)
The function formats the worksheet and renames the tab in which I've just inserted the data.
How can I use my Access module to call the function in Excel and pass it the name that I want to use as the tab?
Note: Using Office XP, the Excel code I want to use is in VBA Project (Personal.xls)
DoCmd.OutputTo acOutputQuery, stDocName, acFormatXLS, Filename, True
Each time that I do this I create a new spreadsheet/workbook w/ a file name specific to the output. Once in Excel I run a module which formats the spreadsheet. The name of the module function is
Public Function UpdateMatrix(tabname As String)
The function formats the worksheet and renames the tab in which I've just inserted the data.
How can I use my Access module to call the function in Excel and pass it the name that I want to use as the tab?
Note: Using Office XP, the Excel code I want to use is in VBA Project (Personal.xls)