VBA Code - NAME SEVERAL VARIABLE cells

D

Danny

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.
 

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

Top