showing BOTH subtotal sums and count on excel sheet

  • 14 years ago

    I know how to place the subtotal sums or the subtotal count on the subtotal line in the excel worksheet.  However, I need BOTH figures.  How do I change the following code to print out both subtotals on the same line?

    Selection.Subtotal GroupBy:=1, Function:=xlSum, TotalList:=Array(5), _
            Replace:=True, PageBreaks:=False, SummaryBelowData:=True
             Selection.FormatConditions.Delete
        Selection.FormatConditions.Add Type:=xlExpression, Formula1:= _
            "=RIGHT($A1,5)=""total"""
      




    Thx,--kwwm

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Engineers are all basically high-functioning autistics who have no idea how normal people do stuff.” - Cory Doctorow