Closed Thread
Results 1 to 6 of 6

macro to copy row and insert that copied row

  1. #1
    Registered User
    Join Date
    01-22-2014
    Location
    USA
    MS-Off Ver
    Excel for Mac 2011
    Posts
    10

    macro to copy row and insert that copied row

    macro to copy the row that my cursor is on, then insert that copied row above that row

  2. #2
    Valued Forum Contributor adyteo's Avatar
    Join Date
    01-10-2013
    Location
    Calgary
    MS-Off Ver
    Excel 2010
    Posts
    540

    Re: macro to copy row and insert that copied row

    Add this code to the worksheet code

    Please Login or Register  to view this content.
    Click on the star if you think I helped you

  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 to copy row and insert that copied row

    Maybe:

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    01-22-2014
    Location
    USA
    MS-Off Ver
    Excel for Mac 2011
    Posts
    10

    Re: macro to copy row and insert that copied row

    Thanks for your help. I only know how to create macros in Excel 2011 using the Tool/Macros/Record Macro.

    I tried clicking on Visual Basic Editor, typing what you wrote, but that didn't work. I guess I need to learn how to write macros in VBE.

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

    Re: macro to copy row and insert that copied row

    Alt-F11 will bring up the VBE. On the left side select your Project (name of workbook.xlsx). Go to your menu Insert Module. Copy code from this website and paste in the Module.

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: macro to copy row and insert that copied row

    Thread posted in CS subforum, hence closed.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Macro to copy above row and insert copied row based on value
    By sambuka in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-06-2012, 06:24 PM
  2. [SOLVED] Dynamic Copy + Insert copied cells to a new row Macro by selecting two fields
    By engrogg in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-10-2012, 07:25 AM
  3. copy insert copied row in new row
    By tfonas in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-20-2010, 07:13 AM
  4. Copy and Insert Copied Cell - Macro
    By janjan_376 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-09-2010, 02:45 PM
  5. Macro - Copy and Insert Copied cell
    By janjan_376 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-27-2010, 03:47 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