+ Reply to Thread
Results 1 to 5 of 5

cut/paste row based on cell value

  1. #1
    Registered User
    Join Date
    07-12-2013
    Location
    honolulu, HI
    MS-Off Ver
    Excel 2013
    Posts
    7

    cut/paste row based on cell value

    I am attempting to cut and paste a row (cut and paste occurs on the same sheet {pic}) if a cell value within that row is ">=" a cell value on a different sheet.
    Attached Images Attached Images
    Last edited by sinistr0311; 07-19-2013 at 12:43 AM.

  2. #2
    Registered User
    Join Date
    07-12-2013
    Location
    honolulu, HI
    MS-Off Ver
    Excel 2013
    Posts
    7

    Re: cut/paste row based on cell value

    Progress this leaves me with blank rows, tried it with selection.delete shift:=xlup first, but during my 1st debug I relized this would cause rows to be skipped. If 2 consecutive rows need to be moved, the second row would be skipped due to the shift xlup.

    Also it runs very slow. When I tested it on a table with 400 rows, I could see the rows on the far left table being populated top to bottom, as opposed to "snap" and its done.

    Please Login or Register  to view this content.
    I got this idea from one of ExcelVBAIsFun videos about loops.

  3. #3
    Registered User
    Join Date
    07-12-2013
    Location
    honolulu, HI
    MS-Off Ver
    Excel 2013
    Posts
    7

    Re: cut/paste row based on cell value

    Please Login or Register  to view this content.
    no errors with this one so far. Been working on this little block all day. Finally, and with no direct assistance. The top portion is what I came up with so I am hoping their will be no issues. I understand how it is working. The filtering portion was taken from a google search. For the blanks I tried using a similar method I use to find the >= rows, but the same issue with skipping rows if their were 2 consecutive executions.
    Last edited by sinistr0311; 07-19-2013 at 02:26 AM.

  4. #4
    Registered User
    Join Date
    07-12-2013
    Location
    honolulu, HI
    MS-Off Ver
    Excel 2013
    Posts
    7

    Re: cut/paste row based on cell value

    this is where I ended up

    copy data from my daily sheets to a consolidation sheet, then cut/paste specific data based on cell value and get rid of the empty rows

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    07-12-2013
    Location
    honolulu, HI
    MS-Off Ver
    Excel 2013
    Posts
    7

    Re: cut/paste row based on cell value

    For the days I don't have data I normally delete the sheets. When I did I ran into a couple problems. Some of the code was not executing on the correct sheet. I wasn't able to use the tab name because it changes every month so I adjusted it with this.

    Please Login or Register  to view this content.
    and this

    Please Login or Register  to view this content.
    I hope this helps someone with similar circumstances.

+ 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. Replies: 3
    Last Post: 07-25-2012, 07:54 AM
  2. Replies: 2
    Last Post: 11-08-2011, 11:10 AM
  3. Copy and paste row based on cell value
    By contra76 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-20-2010, 03:23 AM
  4. Replies: 3
    Last Post: 07-15-2010, 08:49 AM
  5. Paste Into Row Based on Another Cell's Value
    By atkikj2 in forum Excel General
    Replies: 2
    Last Post: 03-01-2008, 12:07 PM

Tags for this Thread

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