+ Reply to Thread
Results 1 to 4 of 4

Macro to take the active cell, copy and cut entire row, paste into a new row in same sheet

  1. #1
    Registered User
    Join Date
    12-14-2010
    Location
    New Zealand
    MS-Off Ver
    Excel 2003
    Posts
    2

    Macro to take the active cell, copy and cut entire row, paste into a new row in same sheet

    hi there

    I am trying to write a Macro to take the active cell, copy and cut entire row, paste into a new row in same sheet (further down page in a another section), and then go back and delete the cut row from above. Each time it pastes the copied cells into the sheet below it needs to go onto the next row below.

    for example in line 17, I want to be able to be click on cell B17 (and activate the macro) that will copy the entire row and then paste it into row 43. and then delete the entire row from line 17.

    when i do this for the next selection, which could be any line i.e. copy row 32 cut and insert below into the next available row below the last entry - so that would be row 44.
    it needs to insert a row below each time as there are 20 available rows but there is a possibility this action could happen 500 times - so each time it will need to insert a new row.

    (Using Excel 2010)

    thanks in advance

  2. #2
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Macro to take the active cell, copy and cut entire row, paste into a new row in same s

    Feel free to upload an example workbook.

    An example (put the code in the Sheet module),
    Please Login or Register  to view this content.
    where, if you double click on a cell in Col.B, the whole row will be moved down to the last non-empty row in Col.B.

    Hope this helps,

    berlan

  3. #3
    Registered User
    Join Date
    12-14-2010
    Location
    New Zealand
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Macro to take the active cell, copy and cut entire row, paste into a new row in same s

    Thanks, when i use this code it comes up with run time error 424, object required

  4. #4
    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 take the active cell, copy and cut entire row, paste into a new row in same s

    Maybe:

    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. Copy and paste entire row to second sheet based on cell value
    By SilverMonkey in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 05-25-2015, 08:49 AM
  2. [SOLVED] Copy the active cell and paste into another sheet
    By Christopherdj in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 03-19-2015, 07:55 PM
  3. [SOLVED] copy paste entire row into a specific cell in sheet 2
    By melody10 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-29-2013, 04:40 PM
  4. VBA Copy from one sheet and paste two cells to the right from active cell on another sheet
    By pasqualebaldi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-10-2013, 01:16 PM
  5. Copy Cell Range From Previous Sheet and Paste to Active Sheet
    By jtal in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-01-2013, 03:26 PM
  6. [SOLVED] Copy & Paste active row to Sheet 2 without cell borders
    By XxCMoneyxX in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-12-2013, 11:10 AM
  7. Copy from active sheet and paste into new sheet using info from cell in active
    By Ingve in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-23-2006, 06:00 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