Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Danny
 
Posts: n/a
Default VBA Code - NAME SEVERAL VARIABLE cells

I have a large workbook with more than a thousand rows. After sorting, the
rows are separated into 18 groups. I total each group (column D) by using
sum in active cell macro (naming the group totals Total1 to Total18).

I'd like to write a macro to name each total (cell) so I can use the name of
each or a combination of the named cells.

How can I write a macro for this situation? ActiveWorkbook.Names.Add
Name:="saytotal1", RefersToR1C1:==?????????

How can I write a macro to name SEVERAL unknown/variable cells?

Before sorting, the named ranges would be deleted, then, sum each group and
re-name (use the macro that I need VERY BADLY) the new total (cell) for each
group.

Thanks in advance.

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
Display first, second, etc Nonblank Cells in a Range Jeremy N. Excel Worksheet Functions 12 September 25th 05 01:47 PM
VLOOKUP for Zip Code Ranges JerseyJR Excel Worksheet Functions 2 September 6th 05 06:37 PM
variable code?? Paul Excel Discussion (Misc queries) 1 April 5th 05 06:37 PM
code to Copy cells from the above row. Fernando Excel Worksheet Functions 1 January 27th 05 08:14 PM
how can i select all the cells with same color on a sheet if there are multipale colors by vba code uobt Charts and Charting in Excel 1 December 15th 04 05:27 PM


All times are GMT +1. The time now is 09:47 AM.

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"