code for sum of sht with diff # of rows

  • Thread starter Thread starter Paulg
  • Start date Start date
P

Paulg

I need some code that will allow me to select the first blank cell a
the bottom of a column of numbers and calculate the sum. My problem i
that each spreadsheet I import has a different number of rows, and
don't know how to select the number of rows specific to tha
spreadsheet from the blank cell at the bottom. My previous macro
recorded the number of rows in the spreadsheet I recorded the macr
in.

Thanks

Pau
 
Range("A1").End(xlDown).Offset(1,0).Select 'Next Blank Cell in column a

HTH

Die_Another_Day
 

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

Similar Threads

calculate sum of range 3
Multiple SUM's in a column 15
summing through end of row 2
Sum of sub groups 3
Sum Columns with Specific Headings 6
Find percentage of sums 3
Sum - to end 5
select specific rows 1

Back
Top