Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default subtotalling where # of columns vary

I am trying to setup a template file and need to
programmatically insert subtotals, but different users may
have more columns than others. The first 3 columns will
be the same for all users and the data will always be a
list with column names.

Any help would be appreciated.
MC
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default subtotalling where # of columns vary

set rng = range("A1").CurrentRegion

msgbox "number of columns: " & rng.columns.count

Not sure what you need beyond that.

Regards,
Tom Ogilvy

MC wrote in message
...
I am trying to setup a template file and need to
programmatically insert subtotals, but different users may
have more columns than others. The first 3 columns will
be the same for all users and the data will always be a
list with column names.

Any help would be appreciated.
MC



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
Subtotalling Delamgbc Excel Worksheet Functions 1 October 15th 08 08:22 AM
Subtotalling ann New Users to Excel 2 February 8th 07 10:45 PM
Sum of columns that vary in position gibsol Excel Worksheet Functions 5 August 17th 06 03:50 PM
Subtotalling ldf863 Excel Worksheet Functions 2 May 26th 06 06:33 PM
How can i vary the width of columns in a histogram? Tushar Excel Worksheet Functions 1 February 26th 05 05:41 PM


All times are GMT +1. The time now is 01:18 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"