+ Reply to Thread
Results 1 to 4 of 4

Insert New Row below and keep formulas - macro

  1. #1
    Forum Contributor
    Join Date
    04-05-2013
    Location
    CT
    MS-Off Ver
    Excel 2010
    Posts
    360

    Insert New Row below and keep formulas - macro

    I'm looking for a code that will allow me to click a button to insert a new row and keep the properties of the row above.

    For example. I have a heading at row A14, there are 5 'tasks' listed below (which take up rows A15 thru A19) I would like to have a button located within my heading row that will insert a row below A19 and will keep all the properties and formulas of row A19. However the next time the worksheet is open and used, if a new row is needed it would have to be below row A20 and so on. Also (if possible) cell A contains a "task #' when a new row is added (when clicking the button) can the next sequential # automatically be generated?

    I will have multiple headings so i would like to have a button at each heading the will insert a row accordingly.

    The attached sheet I have 3 headings made with the 3 buttons where i would like to have them. Hope this makes sense and would appreciate any help i can get!!

    See attached sheet Pre-construction Planning Checklist.xlsm
    Last edited by adamheon; 07-15-2013 at 03:35 PM.

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Insert New Row below and keep formulas - macro

    Please Login or Register  to view this content.
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    07-16-2013
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Insert New Row below and keep formulas - macro

    I would like to do something similar - create a button to add rows to the bottom of my data range, copying down formulas and formatting. Ideally, also have a window pop up and ask users how many rows they would like to add.

  4. #4
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Insert New Row below and keep formulas - macro

    Please Login or Register  to view this content.

+ 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. Macro to insert new row with formulas of row above
    By zacjy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-18-2012, 08:01 AM
  2. Insert formulas via macro
    By martinez_pedro in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-26-2011, 04:00 AM
  3. insert two formulas with macro
    By johncena in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-15-2010, 10:44 AM
  4. Macro to insert row and formulas.
    By Matso in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-07-2009, 01:39 AM
  5. Macro to insert copy and insert formulas only to next blank row
    By bob in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-30-2006, 07:10 AM

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