+ Reply to Thread
Results 1 to 3 of 3

Macro to cut two rows and insert them in different sheet in order of date

  1. #1
    Valued Forum Contributor
    Join Date
    11-27-2013
    Location
    Brooklyn, NY
    MS-Off Ver
    Office 365
    Posts
    1,172

    Macro to cut two rows and insert them in different sheet in order of date

    Hello.
    I'm looking for a macro that would cut two preselected rows out of the first sheet in this attachment INSERT ROW.xlsm i.e. rows 9 & 10 and insert it in the 2nd sheet in order of column "B" (the date).
    The reason why I am not recording a macro using the sorting tool is because the sorting function would get rid of the blank row between each row with data. (I need this blank row to enter notes)
    Any help would be greatly appreciated.

    Thank you.
    Last edited by kosherboy; 03-27-2014 at 08:43 PM.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Macro to cut two rows and insert them in different sheet in order of date

    Hi,

    It is not clearly stated, how the rows to be moved are to be determined.
    I assumed that the cursor is in the first row of the two - (i.e. row 9).
    So having a cursor in row 9 of sheet 1 run macro test:

    Please Login or Register  to view this content.
    If other method is to be used - just determine the first row and call move_two with the appropriate row number as argument.
    Best Regards,

    Kaper

  3. #3
    Valued Forum Contributor
    Join Date
    11-27-2013
    Location
    Brooklyn, NY
    MS-Off Ver
    Office 365
    Posts
    1,172

    Re: Macro to cut two rows and insert them in different sheet in order of date

    Hi, thanks for your reply.
    I will look at it over the weekend.
    Thanks again.

+ 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 copy rows based on moving date and paste the rows into an identical sheet
    By ivandc1234 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-28-2014, 11:59 AM
  2. Replies: 2
    Last Post: 10-31-2013, 05:00 PM
  3. Replies: 1
    Last Post: 05-11-2013, 02:58 AM
  4. Macro which will copy rows of data, in same order from one sheet, to another sheet!
    By WaylettChris in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-23-2013, 02:02 PM
  5. Insert Column in alphabeticall order of name on next sheet
    By ufopilot3 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-13-2012, 08:45 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