I have a simple access/vba application that imports an excel spreadsheet using transfer spreadsheet. Next it runs a query and groups records into smaller spreadsheets. It then mails each spreadsheet to a recipient as determined by a lookup table.
Everything works well with this application except that I still need to sort the excel data prior to mailing it. If I were to make a macro in excel to do this, it would be this:
Anyway, is there a way to have access run this code on an excel spreadsheet, then mail it?
Thanks
Thanks, PDUNCAN
Everything works well with this application except that I still need to sort the excel data prior to mailing it. If I were to make a macro in excel to do this, it would be this:
Code:
Sub Macro1()
Cells.Select
Selection.Subtotal GroupBy:=6, Function:=xlSum, TotalList:=Array(9, 10, 11, _
12, 13), Replace:=True, PageBreaks:=False, SummaryBelowData:=True
End Sub
Anyway, is there a way to have access run this code on an excel spreadsheet, then mail it?
Thanks
Thanks, PDUNCAN