J
Jhcorsair
Hello All,
I've just started using VB2005 Express Edition to automate
Excel and hopefully make my life easier at work. I have the CurrentRegion
object (selection) referenced for the subtotal but, I cannot (banging my head
against the wall) figure out how reference the "Array" in the function. It's
obvious to me that it's pointing to column 9. How do I get this to work?
Selection.Subtotal GroupBy:=8, Function:=xlSum, TotalList:=Array(9), _
Replace:=True, PageBreaks:=False, SummaryBelowData:=True
I've just started using VB2005 Express Edition to automate
Excel and hopefully make my life easier at work. I have the CurrentRegion
object (selection) referenced for the subtotal but, I cannot (banging my head
against the wall) figure out how reference the "Array" in the function. It's
obvious to me that it's pointing to column 9. How do I get this to work?
Selection.Subtotal GroupBy:=8, Function:=xlSum, TotalList:=Array(9), _
Replace:=True, PageBreaks:=False, SummaryBelowData:=True