+ Reply to Thread
Results 1 to 3 of 3

code for sum of sht with diff # of rows

  1. #1
    Registered User
    Join Date
    07-05-2006
    Posts
    12

    code for sum of sht with diff # of rows

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

    Thanks

    Paul

  2. #2
    Die_Another_Day
    Guest

    Re: code for sum of sht with diff # of rows

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

    HTH

    Die_Another_Day
    Paulg wrote:
    > I need some code that will allow me to select the first blank cell at
    > the bottom of a column of numbers and calculate the sum. My problem is
    > that each spreadsheet I import has a different number of rows, and I
    > don't know how to select the number of rows specific to that
    > spreadsheet from the blank cell at the bottom. My previous macros
    > recorded the number of rows in the spreadsheet I recorded the macro
    > in.
    >
    > Thanks
    >
    > Paul
    >
    >
    > --
    > Paulg
    > ------------------------------------------------------------------------
    > Paulg's Profile: http://www.excelforum.com/member.php...o&userid=36077
    > View this thread: http://www.excelforum.com/showthread...hreadid=562060



  3. #3
    Registered User
    Join Date
    07-05-2006
    Posts
    12
    perfect! thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1