+ Reply to Thread
Results 1 to 5 of 5

Adding a last row in a range adding the previous!

  1. #1
    Registered User
    Join Date
    06-15-2012
    Location
    Greece
    MS-Off Ver
    Excel 2007
    Posts
    85

    Adding a last row in a range adding the previous!

    Hi there.

    I use this code for getting back in another sheet results according the dates distance and a a customer code.

    What i need is when i get my results using the code, after the last used row to appear a word "Total" in column A and the sum of previous cells in column C.

    Please Login or Register  to view this content.
    Any help on this is much appreciated.

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Adding a last row in a range adding the previous!

    Try the attached. I made a separate code.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    06-15-2012
    Location
    Greece
    MS-Off Ver
    Excel 2007
    Posts
    85

    Re: Adding a last row in a range adding the previous!

    Your code works like a charm!

    Thank you.

    I don't know if i must start a new thread for this or not but i'd like to ask for you if you know how to modify the code that i use to don't transfer the Headers from data sheet to macro sheet?

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Adding a last row in a range adding the previous!

    Change this line

    Please Login or Register  to view this content.
    INTO

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-15-2012
    Location
    Greece
    MS-Off Ver
    Excel 2007
    Posts
    85

    Re: Adding a last row in a range adding the previous!

    It's works great.

    Thank you so much!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Next & Previous buttons not working when adding Last button
    By jlsewall in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-10-2013, 09:41 AM
  2. Correct formula for adding columns based on previous row
    By packers316 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-02-2013, 06:44 AM
  3. Adding and subtracting to a cell's previous value
    By elimelim in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 04-09-2012, 02:52 PM
  4. Macro for adding rows after previous row?
    By xwishmasterx in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-17-2010, 07:28 PM
  5. Adding values from previous worksheets
    By firecord in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-06-2005, 12:05 PM

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