subtotalling where # of columns vary

M

MC

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
 
T

Tom Ogilvy

set rng = range("A1").CurrentRegion

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

Not sure what you need beyond that.

Regards,
Tom Ogilvy
 

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