Results 1 to 8 of 8

Sum of Unknown Number of Rows

Threaded View

  1. #1
    Registered User
    Join Date
    09-25-2008
    Location
    Scotland
    Posts
    12

    Sum of Unknown Number of Rows

    I've tried this code but doesn't seem to work, any pointers?

     
        Dim Count As Long
        Range("A1").Select
       
            Range(Selection, Selection.End(xlDown)).Select
       
        Count = Selection.Cells.CountA
       
        Range("A1").Select
        
        Selection.End(xlDown).Select
        ActiveCell.Offset(2, 2).Select
        ActiveCell.FormulaR1C1 = "=SUM(R[-'Counta']C:R[-2]C)"
    Last edited by Colin_S; 08-16-2010 at 05:23 AM.

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