+ Reply to Thread
Results 1 to 3 of 3

Macro Required - Add new row

  1. #1
    Forum Contributor
    Join Date
    03-05-2015
    Location
    Playa Del Carmen, Mexico
    MS-Off Ver
    2016
    Posts
    111

    Macro Required - Add new row

    Hi,

    How do I add a button that will automatically add a new row whilst copying the formulae from the previous row?

    Attached is what I'm looking to do.

    Columns C,D & E required data input. Columns F,G,H & I have a drop down. Columns J,K & L will be hidden.

    What I want to do is have a button that adds a new row with all of the formula within.

    Is this possible ?

    Tabs: Complete, where I'm at. Required, what I'm looking for.
    Attached Files Attached Files
    Last edited by M12NIX; 03-10-2015 at 06:32 PM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Macro Required - Add new row

    Hello M12NIX,

    Welcome to the Forum!

    The attached workbook has the macro code below added to it.

    The position of "CommandButton1" is important. The top of the button must be inside the cell below the last entry. The macro uses the button's location to determine the next row.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Macro Required - Add new row

    FWIW:

    Had just done something similar:

    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. HELP!!! Macro required
    By leeroyrooney in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-06-2013, 07:58 PM
  2. Macro help required
    By evanhughes in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-02-2012, 04:58 AM
  3. macro required for ALT+TAB
    By challenger222 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-01-2010, 02:39 AM
  4. [SOLVED] Macro required
    By PCOR in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-11-2005, 03:40 PM
  5. Replies: 1
    Last Post: 05-13-2005, 11:06 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