Hi,
I am a beginner in excel programming. Now I have to do some thing for my current project.
I am creating an excel sheet dynamically using the Database application. Now I have to subtotal this.
Selection.Subtotal GroupBy:=1, Function:=xlSum, TotalList:=Array(5, 6, 7, 8, _
9, 10, 11, 12, 13, 14), Replace:=True, PageBreaks:=False, SummaryBelowData:=True
Here the GroupBy:= will change sheet to sheet, but that I can pass as an argument.
TotalList:=Array(5,6...) will varies and it is not possible to pass an argument since it may come upto 60 columns, until the rightmost column in the sheet.
How can I programatically add these array list in the macro.
Any sugestions or lead to another faq is highly appreciated.
I am a beginner in excel programming. Now I have to do some thing for my current project.
I am creating an excel sheet dynamically using the Database application. Now I have to subtotal this.
Selection.Subtotal GroupBy:=1, Function:=xlSum, TotalList:=Array(5, 6, 7, 8, _
9, 10, 11, 12, 13, 14), Replace:=True, PageBreaks:=False, SummaryBelowData:=True
Here the GroupBy:= will change sheet to sheet, but that I can pass as an argument.
TotalList:=Array(5,6...) will varies and it is not possible to pass an argument since it may come upto 60 columns, until the rightmost column in the sheet.
How can I programatically add these array list in the macro.
Any sugestions or lead to another faq is highly appreciated.