+ Reply to Thread
Results 1 to 4 of 4

Urgent Help -- Macro Code to insert new row and coy formula

  1. #1
    Forum Contributor
    Join Date
    01-03-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2016,Excel 2013
    Posts
    186

    Urgent Help -- Macro Code to insert new row and coy formula

    Hi Guys,

    Need of a macro code to Insert a new row and copy data from above row only if it has formulas.

    Any help is here much appreciated.


    Thanks

    Mysore

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Urgent Help -- Macro Code to insert new row and coy formula

    Excel's TABLE function does this for you without the need of a macro. Click inside your table and press CTRL-L to start the TABLE/LIST wizard, let it convert your data to a table.

    Now, when you click inside the table, an "expansion row" is offered to you below the table. IF you type into ANY cell in that row, the row will expand to permanently become a part of the TABLE and all formulas and formatting are copied instantly from the row above, just like you want.

    Try that.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor
    Join Date
    01-03-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2016,Excel 2013
    Posts
    186

    Re: Urgent Help -- Macro Code to insert new row and coy formula

    Thanks heaps. Really helped.

    Cheers

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Urgent Help -- Macro Code to insert new row and coy formula

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

+ 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