Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Subtotaling within a Macro

Hi,

I'm writing my first macro, and I need some help. So I have my datase
selected D1: the end of the data. I want to replicate the behavior o
the subtotal pop up (where it asks me "Add subtotal to" and then I ca
select each colum I want to see a subtotal for: Columns E1 through th
last column.

When I record the macro, I get this:

Selection.Subtotal GroupBy:=2, Function:=xlSum, TotalList:=Array(15
16, 17 _
, 18, 19, 20, 21, 22), Replace:=True, PageBreaks:=False
SummaryBelowData:= _
True

I think the "TotalList" Thing is messing me up. How do I select th
Array from, let's say Column E through the end of the data? the numbe
of columns is variable.

Darn it, this is not making sense... anyone understand what i'
saying?

Explaining problems in excel through text is really difficult.

Thanks for reading.
Jo

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Subtotaling within a Macro

Anyone out there

--
Message posted from http://www.ExcelForum.com

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Subtotaling within a Macro

Maybe they're at your other post!

"hosmurf <" wrote:

Anyone out there?

---
Message posted from http://www.ExcelForum.com/


--

Dave Peterson

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Subtotaling Katie Excel Worksheet Functions 3 December 17th 09 10:04 PM
Subtotaling Katie Excel Worksheet Functions 1 December 11th 09 03:10 AM
Subtotaling falva Excel Worksheet Functions 0 February 20th 09 05:01 PM
subtotaling every third row? [email protected] Excel Worksheet Functions 4 May 4th 07 11:44 PM
Subtotaling variable data in a macro Joe New Users to Excel 1 December 29th 06 07:25 PM


All times are GMT +1. The time now is 11:59 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"