Cannot Reference "Array" in Subtotal Function

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top