Hi everyone,
I successfully exported a query from Access to Excel, but now I want to programmatically format the newly created excel spreadsheet. Is there a way to do this from the VBA code in Access?
I just need guidance in getting my objects defined and correctly referenced so I can begin coding as if I were in Excel doing the VBA rather than Access.
This is what I have so far
Function Export()
'Run Query
DoCmd.OpenQuery "Tracker_Generator", acViewNormal, acEdit
'Export Query to Excel
DoCmd.OutputTo acOutputQuery, "Tracker_Generator", "ExcelWorkbook(*.xlsx)", "", True, "", , acExportQualityPrint
End Function
I would great appreciate any help! Thanks
I successfully exported a query from Access to Excel, but now I want to programmatically format the newly created excel spreadsheet. Is there a way to do this from the VBA code in Access?
I just need guidance in getting my objects defined and correctly referenced so I can begin coding as if I were in Excel doing the VBA rather than Access.
This is what I have so far
Function Export()
'Run Query
DoCmd.OpenQuery "Tracker_Generator", acViewNormal, acEdit
'Export Query to Excel
DoCmd.OutputTo acOutputQuery, "Tracker_Generator", "ExcelWorkbook(*.xlsx)", "", True, "", , acExportQualityPrint
End Function
I would great appreciate any help! Thanks