![]() |
Cannot Reference "Array" in Subtotal Function
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 |
All times are GMT +1. The time now is 02:45 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com