+ Reply to Thread
Results 1 to 5 of 5

Macro to Move Row if Cell data is Greater than 5

  1. #1
    Registered User
    Join Date
    06-01-2013
    Location
    Phoenix, Az
    MS-Off Ver
    Excel 2007
    Posts
    13

    Macro to Move Row if Cell data is Greater than 5

    I am looking to write a macro that simply cut/paste an entire row from sheet1 to sheet2 if the cell value in row i (Elevation) is greater than 5.

    ExcelForumMoveRow.xlsx

    Thank you!!
    Last edited by michaelpair; 06-18-2013 at 02:16 PM.

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Macro to Move Row if Cell data is Greater than 5

    I had to unmerge the cells in rows1 and 2. By cut you mean, you want to copy and delete it from sheet1
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    06-01-2013
    Location
    Phoenix, Az
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Macro to Move Row if Cell data is Greater than 5

    Thank you - yes, copy and delete from sheet1...I noticed that there is a Sheet1, Sheet1 (2), and Sheet 2?

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Macro to Move Row if Cell data is Greater than 5

    Sheet1 (2), copy of the original sheet, just delete it. The code does copy and delete.

  5. #5
    Registered User
    Join Date
    06-01-2013
    Location
    Phoenix, Az
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Macro to Move Row if Cell data is Greater than 5

    Awesome!! It works perfectly, thank you again!!

+ 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