+ Reply to Thread
Results 1 to 5 of 5

Macro/If Then statement to move a row of data

  1. #1
    Registered User
    Join Date
    03-18-2014
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    8

    Macro/If Then statement to move a row of data

    I am using 2010 Excel and here is what I am trying to achieve. I have a spreadsheet with drop down menu's. One of the columns I have is APPROVED. The drop down menu is YES and NO. When the user marks the field YES, I would like the row to cut and paste into a different worksheet (To track approved rows).

    1. If there is an "YES" in column L, then move entire row to the first available row on sheet 3.

    2. Delete empty row in Sheet 1

    I would like the statement/macro to apply to the entire sheet.

    Can anyone lend me a hand?

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

    Re: Macro/If Then statement to move a row of data

    Maybe:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-18-2014
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Macro/If Then statement to move a row of data

    That didn't seem to work. I am really new to macro's, is there a step to activate it that I need to do? Thanks for all the help.

  4. #4
    Registered User
    Join Date
    03-18-2014
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Macro/If Then statement to move a row of data

    This is the row where there is an error occurring.

    Rows(i).Copy Sheets("Sheet3").Range("A" & Rows.Count).End(3)(2)

  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/If Then statement to move a row of data

    Can you attach a sample file with some dummy data.

+ 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. [SOLVED] IF data on opened worksheet has blank data then cancel macro and move onto next part
    By jonathan.haynes in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-01-2013, 07:11 AM
  2. [SOLVED] Trying to use an IF statement to move a large amount of data into a matrix
    By bigscoots in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-25-2013, 04:59 AM
  3. Replies: 1
    Last Post: 07-14-2008, 03:24 PM
  4. Macro/If Then statement to move a row of data
    By Mcfish in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-01-2008, 03:28 AM
  5. If statement to move data to another worksheet
    By wharfrat in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-03-2007, 02:27 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