+ Reply to Thread
Results 1 to 5 of 5

Auto Inset Additional Row

  1. #1
    Forum Contributor
    Join Date
    09-26-2010
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    182

    Question Auto Inset Additional Row

    Can anyone help with this
    I have a spreadsheet with 16 rows. The 16th row has totals in various columns. Is it poosible that when I get to the 15th row another row automatically inserts and copies the formulas from the row above to the 16th row and the totals move down to the 17th row
    I need this to repeat everytime I drop down a row.
    Last edited by Mooseman60; 04-29-2011 at 11:26 AM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Auto Inset Additional Row

    Okay, I'm only an intermediate VBA person at best but try this code as the worksheet code
    Please Login or Register  to view this content.
    Note in the attachment, I set up my SUM formulas in the final row to progress as rows are inserted i.e.
    =SUM(A1:INDEX(A:A,ROW()-1))
    Does this work for you?
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Contributor
    Join Date
    09-26-2010
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    182

    Re: Auto Inset Additional Row

    ChemistB

    I don't seem to be able to get it to work. I have attached my workbook so you can see what i am trying to achieve. Also if I delete the contents of cell B in the last row above the sum totals I would like it to remove that row.

    I told you the wrong column (A) that if data is entered then another row drops in it should have been column B

    Appreciate any help
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Auto Inset Additional Row

    Okay, I modified the "LstRow" formula a bit. Try this one. I didn't set it up to look for deleting value in col B. You can simply select the row, right click and delete. Let us know if this works.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    09-26-2010
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    182

    Re: Auto Inset Additional Row

    Works great thanks very much

+ 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