+ Reply to Thread
Results 1 to 3 of 3

if a 1 appears in any of three specific columns, then cut row and move to next sheet

  1. #1
    Forum Contributor
    Join Date
    06-29-2011
    Location
    Scotland
    MS-Off Ver
    Excel 2003
    Posts
    122

    if a 1 appears in any of three specific columns, then cut row and move to next sheet

    In attached workbook there are 0 and 1's in columns G, H and I.
    Any ideas on:
    • If a 1 appears in any of these three columns (G, H and I) on Sheet2, then move the row that the 1 (or 1's) are in, from Sheet2 to Sheet3. Would need to determine how many rows are in Sheet3 before pasting in new rows (to avoid overwriting rows that are already in there).
    Attached Files Attached Files
    Last edited by intothewild; 11-25-2012 at 05:21 PM.

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: if a 1 appears in any of three specific columns, then cut row and move to next sheet

    Give this a try

    Please Login or Register  to view this content.
    Last edited by mike7952; 11-25-2012 at 05:38 PM.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  3. #3
    Forum Contributor
    Join Date
    06-29-2011
    Location
    Scotland
    MS-Off Ver
    Excel 2003
    Posts
    122

    Re: if a 1 appears in any of three specific columns, then cut row and move to next sheet

    Thanks alot Mike, it works wonders! Can you talk me through the steps a little, i dont follow everything (your more sophisticated in vba than me, thankfully!) ..your reference to col "a" in particular left me guessing how this works. i understand alot of these methods (so im definitiely learning alot, thanks!) but im struggling with whats happening, in particular, on the lines with 'RangeToCut'.
    Last edited by intothewild; 11-25-2012 at 05:59 PM.

+ 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