VBA to Move rows in a sheet based on the project Status

%3CLINGO-SUB%20id%3D%22lingo-sub-186359%22%20slang%3D%22en-US%22%3EVBA%20to%20Move%20rows%20in%20a%20sheet%20based%20on%20the%20project%20Status%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-186359%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20working%20on%20a%20spread%20sheet%20that%20is%20a%20list%20of%20projects.%20Basically%20once%20a%20project%20is%20completed%2C%20i%20want%20to%20move%20that%20entire%20row%20to%20a%20completed%20projects%20sheet%2C%20and%20delete%20the%20row%20from%20the%20sheet%20it's%20in.%20My%20Range%20is%20columns%20A-U.%20In%20column%20U%2C%20once%20the%20project%20is%20completed%20i%20want%20the%20row%20automatically%20moved.%20i%20have%20attached%20a%20screenshot.%20Thanks%20in%20advanced.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-186359%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMacros%20and%20VBA%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-449365%22%20slang%3D%22en-US%22%3ERe%3A%20VBA%20to%20Move%20rows%20in%20a%20sheet%20based%20on%20the%20project%20Status%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-449365%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F37127%22%20target%3D%22_blank%22%3E%40Matt%20Mickle%3C%2FA%3E%26nbsp%3Bcan%20we%20send%20back%20from%20completed%20to%20project%20list%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-266929%22%20slang%3D%22en-US%22%3ERe%3A%20VBA%20to%20Move%20rows%20in%20a%20sheet%20based%20on%20the%20project%20Status%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-266929%22%20slang%3D%22en-US%22%3E%3CP%3EThank%20you%20for%20this%20solution.%26nbsp%3B%20I%20was%20able%20to%20use%20it%20for%20my%20needs.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%2C%20rows%20are%20also%20removed%20and%20sent%20to%20the%20completed%20sheet%20when%20I%20copy%20and%20paste%20seemingly%20unrelated%20cells%20to%20that%20row.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%2C%20for%20a%20row%20which%20is%20not%20marked%20as%20%22complete%22%2C%20I%20paste%20a%20few%20cells%20from%20another%20sheet.%26nbsp%3B%20As%20soon%20as%20I%20paste%2C%20the%20row%20is%20moved.%26nbsp%3B%20The%20cells%20I%20am%20pasting%20to%20not%20include%20the%20cell%20I%20am%20using%20to%20mark%20it%20as%20%22Complete%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-189456%22%20slang%3D%22en-US%22%3ERe%3A%20VBA%20to%20Move%20rows%20in%20a%20sheet%20based%20on%20the%20project%20Status%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-189456%22%20slang%3D%22en-US%22%3E%3CP%3ETiffany-%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EJust%20wanted%20to%20follow%20up%20and%20see%20if%20you%20were%20able%20to%20get%20your%20issue%20sorted%20out%3F%26nbsp%3B%20If%20you're%20still%20having%20trouble%20feel%20free%20to%20reach%20back%20out.%26nbsp%3B%20Always%20happy%20to%20help!%26nbsp%3B%20That's%20what%20the%20Excel%20Community%20is%20here%20for!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-187026%22%20slang%3D%22en-US%22%3ERe%3A%20VBA%20to%20Move%20rows%20in%20a%20sheet%20based%20on%20the%20project%20Status%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-187026%22%20slang%3D%22en-US%22%3E%3CP%3ETiffany-%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20have%20attached%20a%20sample%20workbook%20for%20your%20reference.%26nbsp%3B%20You%20will%20need%20to%20paste%20this%20code%20in%20the%20Project%20List%20worksheet%20code%20module%20in%20the%20attached%20file%20for%20it%20to%20work%20properly%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E1.%20Alt%20%2B%20F11%20(Access%20VBE)%3C%2FP%3E%0A%3CP%3E2.%20Double%20click%20the%20icon%20in%20the%20Project%20Explorer%20that%20says%20Project%20List%3C%2FP%3E%0A%3CP%3E3.%20Paste%20the%20code%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3EPrivate%20Sub%20Worksheet_Change(ByVal%20Target%20As%20Range)%0A%20%20%20%20On%20Error%20Resume%20Next%0A%20%20%20%20Application.EnableEvents%20%3D%20False%0A%20%20%20%20'If%20Cell%20that%20is%20edited%20is%20in%20column%20U%20and%20the%20value%20is%20completed%20then%0A%20%20%20%20If%20Target.Column%20%3D%2021%20And%20Target.Value%20%3D%20%22Completed%22%20Then%0A%20%20%20%20%20%20%20%20'Define%20last%20row%20on%20completed%20worksheet%20to%20know%20where%20to%20place%20the%20row%20of%20data%0A%20%20%20%20%20%20%20%20LrowCompleted%20%3D%20Sheets(%22Completed%22).Cells(Rows.Count%2C%20%22A%22).End(xlUp).Row%0A%20%20%20%20%20%20%20%20'Copy%20and%20paste%20data%0A%20%20%20%20%20%20%20%20Range(%22A%22%20%26amp%3B%20Target.Row%20%26amp%3B%20%22%3AU%22%20%26amp%3B%20Target.Row).Copy%20Sheets(%22Completed%22).Range(%22A%22%20%26amp%3B%20LrowCompleted%20%2B%201)%0A%20%20%20%20%20%20%20%20'Delete%20Row%20from%20Project%20List%0A%20%20%20%20%20%20%20%20Range(%22A%22%20%26amp%3B%20Target.Row%20%26amp%3B%20%22%3AU%22%20%26amp%3B%20Target.Row).Delete%20xlShiftUp%0A%20%20%20%20End%20If%0A%20%20%20%20Application.EnableEvents%20%3D%20True%0AEnd%20Sub%0A%0A%3C%2FPRE%3E%0A%3CP%3EPlease%20note%20that%20you%20may%20need%20to%20adjust%20the%20worksheet%20names%20in%20the%20VBA%20code%20based%20on%20your%20actual%20worksheet%20names.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-893137%22%20slang%3D%22en-US%22%3ERe%3A%20VBA%20to%20Move%20rows%20in%20a%20sheet%20based%20on%20the%20project%20Status%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-893137%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F37127%22%20target%3D%22_blank%22%3E%40Matt%20Mickle%3C%2FA%3E%26nbsp%3B%20Is%20it%20possible%20to%20do%20this%20on%20google%20docs.%20I%20need%20the%20spread%20sheet%20to%20stay%20on%20the%20shared%20drive.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-924937%22%20slang%3D%22en-US%22%3ERe%3A%20VBA%20to%20Move%20rows%20in%20a%20sheet%20based%20on%20the%20project%20Status%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-924937%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F37127%22%20target%3D%22_blank%22%3E%40Matt%20Mickle%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMatt%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20similar%20project%20as%20Tiffany's.%20I%20tried%20the%20suggested%20script%20with%20minor%20changes%20and%20was%20able%20to%20have%20it%20work%20except%20for%20deleting%20the%20target%20row(s).%20Now%2C%20after%20a%20few%20edits%20I%20cannot%20get%20the%20script%20to%20work%20at%20all%3F%20No%20errors.%20I%20am%20sure%20it%20is%20maybe%20something%20simple%2C%20but%20I%20am%20not%20able%20to%20find%20the%20solution.%20I%20have%20pasted%20the%20script%20below.%20Any%20help%20would%20be%20appreciated.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20735px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F139100iE5A3A804390D3449%2Fimage-dimensions%2F735x226%3Fv%3D1.0%22%20width%3D%22735%22%20height%3D%22226%22%20alt%3D%22clipboard_image_1.png%22%20title%3D%22clipboard_image_1.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20724px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F139099i81AEA133CA655F27%2Fimage-dimensions%2F724x210%3Fv%3D1.0%22%20width%3D%22724%22%20height%3D%22210%22%20alt%3D%22clipboard_image_0.png%22%20title%3D%22clipboard_image_0.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EChris%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-927176%22%20slang%3D%22en-US%22%3ERe%3A%20VBA%20to%20Move%20rows%20in%20a%20sheet%20based%20on%20the%20project%20Status%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-927176%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20is%20working%20today%3F%20Not%20sure%20what%20changed%2C%20but%20working%20perfectly.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20anyone%20has%20a%20suggestion%20to%20change%20the%20copy%20and%20paste%20function%20to%20copy%20and%20paste%20values%2C%20please%20let%20me%20know....%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EChris%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-927205%22%20slang%3D%22en-US%22%3ERe%3A%20VBA%20to%20Move%20rows%20in%20a%20sheet%20based%20on%20the%20project%20Status%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-927205%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F430481%22%20target%3D%22_blank%22%3E%40cascherfeld%3C%2FA%3E%26nbsp%3BTo%20paste%20values%2C%20move%20the%20destination%20to%20a%20new%20line%20and%20add%20the%20PasteSpecial%20argument%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ERange(%22A%22%20%26amp%3B%20Target.Row%20%26amp%3B%20%22%3AN%22%20%26amp%3B%20Target.Row).Copy%3CBR%20%2F%3ESheets(%22Meridian_Completed%22).Range(%22A%22%20%26amp%3B%20LrowCompleted%20%2B%201).PasteSpecial%20Paste%3A%3DxlPasteValues%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHTH%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-927343%22%20slang%3D%22en-US%22%3ERe%3A%20VBA%20to%20Move%20rows%20in%20a%20sheet%20based%20on%20the%20project%20Status%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-927343%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F10827%22%20target%3D%22_blank%22%3E%40Smitty%20Smith%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20the%20help!%20I%20am%20receiving%20a%20syntax%20error.%20Please%20advise%20if%20I%20have%20this%20correct...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20615px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F139471iD2789227E1BC4D8D%2Fimage-dimensions%2F615x252%3Fv%3D1.0%22%20width%3D%22615%22%20height%3D%22252%22%20alt%3D%22clipboard_image_0.png%22%20title%3D%22clipboard_image_0.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-927369%22%20slang%3D%22en-US%22%3ERe%3A%20VBA%20to%20Move%20rows%20in%20a%20sheet%20based%20on%20the%20project%20Status%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-927369%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F430481%22%20target%3D%22_blank%22%3E%40cascherfeld%3C%2FA%3E%26nbsp%3BThe%20.PasteSpecial%20Paste%3A%3DxlPasteValues%20part%20needs%20to%20be%20on%20the%20same%20line.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20forum%20wrapped%20the%20text%20since%20I%20didn't%20post%20with%20code%20tags.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-927417%22%20slang%3D%22en-US%22%3ERe%3A%20VBA%20to%20Move%20rows%20in%20a%20sheet%20based%20on%20the%20project%20Status%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-927417%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F10827%22%20target%3D%22_blank%22%3E%40Smitty%20Smith%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20Smitty!%20Works%20perfectly!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1027191%22%20slang%3D%22en-US%22%3ERe%3A%20VBA%20to%20Move%20rows%20in%20a%20sheet%20based%20on%20the%20project%20Status%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1027191%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F10827%22%20target%3D%22_blank%22%3E%40Smitty%20Smith%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHello%20I%20have%20a%20similar%20situation%20as%20above%20and%20was%20able%20to%20get%20the%20code%20you%20helped%20them%20with%20to%20work%20for%20me%20for%20the%20most%20part%20.%20The%20issue%20I%20am%20running%20into%20is%20when%20I%20use%20this%20code%20it%20pastes%20on%20row%201%20of%20the%20sheet%20I%20am%20directing%20it%20to%20so%20every%20time%20something%20moves%20from%20sheet%201%20to%20sheet%202%20it%20is%20pasting%20over%20my%20first%20row%20of%20information%20instead%20of%20the%20next%20blank%20row.%20I%20am%20not%20sure%20how%20to%20resolve%20this%20if%20you%20have%20any%20suggestions%20I%20would%20really%20appreciate%20it.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1079019%22%20slang%3D%22en-US%22%3ERe%3A%20VBA%20to%20Move%20rows%20in%20a%20sheet%20based%20on%20the%20project%20Status%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1079019%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F10827%22%20target%3D%22_blank%22%3E%40Smitty%20Smith%3C%2FA%3E%26nbsp%3BI%20was%20wondering%20if%20you%20got%20the%20issue%20resolved%3F%20I%20am%20having%20the%20same%20issue%20where%20I%20paste%20data%20into%20the%20spreadsheet%20and%20then%20it%20cuts%20row%202%20and%20past%20to%20sheet%202.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1099443%22%20slang%3D%22en-US%22%3ERe%3A%20VBA%20to%20Move%20rows%20in%20a%20sheet%20based%20on%20the%20project%20Status%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1099443%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F37127%22%20target%3D%22_blank%22%3E%40Matt%20Mickle%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGreat%20providing%20this%20outstanding%20Project%20to%20the%20Excel%20community.%20I%20have%20mine%20all%20setup%20but%20is%20there%20a%20way%20to%20have%20the%20exact%20same%20setup%20with%20using%20Share%20Mode.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1302002%22%20slang%3D%22en-US%22%3ERe%3A%20VBA%20to%20Move%20rows%20in%20a%20sheet%20based%20on%20the%20project%20Status%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1302002%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F37127%22%20target%3D%22_blank%22%3E%40Matt%20Mickle%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMatt%20I%20know%20you%20posted%20this%20awhile%20ago%20and%20it%20works%20but%20if%20you%20paste%20into%20the%20first%20worksheet%20if%20moves%20the%20data%20to%20the%20second%20one%20even%20if%20word%20completed%20is%20not%20added%20and%20deletes%20the%20row%20below%20-%20is%20there%20a%20solution%20to%20stop%20this%20%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1975294%22%20slang%3D%22en-US%22%3ERe%3A%20VBA%20to%20Move%20rows%20in%20a%20sheet%20based%20on%20the%20project%20Status%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1975294%22%20slang%3D%22en-US%22%3E%3CP%3EDear%20All%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20used%20this%20code%20and%20it%20works%20great.%3C%2FP%3E%3CP%3EAlthough%2C%20i%20would%20like%20to%20incorporate%20a%20msgbox%20to%20ask%20the%20user%20to%20confirm%2C%20before%20the%20copy%2Fpaste%2Fdelete%20actions%20are%20being%20done.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20help%20would%20be%20much%20appreciated!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethanks%3C%2FP%3E%3CP%3EDavid%3C%2FP%3E%3C%2FLINGO-BODY%3E
Visitor

I am working on a spread sheet that is a list of projects. Basically once a project is completed, i want to move that entire row to a completed projects sheet, and delete the row from the sheet it's in. My Range is columns A-U. In column U, once the project is completed i want the row automatically moved. i have attached a screenshot. Thanks in advanced.

 

 

17 Replies

Tiffany-

 

I have attached a sample workbook for your reference.  You will need to paste this code in the Project List worksheet code module in the attached file for it to work properly:

 

1. Alt + F11 (Access VBE)

2. Double click the icon in the Project Explorer that says Project List

3. Paste the code

 

Private Sub Worksheet_Change(ByVal Target As Range)
    On Error Resume Next
    Application.EnableEvents = False
    'If Cell that is edited is in column U and the value is completed then
    If Target.Column = 21 And Target.Value = "Completed" Then
        'Define last row on completed worksheet to know where to place the row of data
        LrowCompleted = Sheets("Completed").Cells(Rows.Count, "A").End(xlUp).Row
        'Copy and paste data
        Range("A" & Target.Row & ":U" & Target.Row).Copy Sheets("Completed").Range("A" & LrowCompleted + 1)
        'Delete Row from Project List
        Range("A" & Target.Row & ":U" & Target.Row).Delete xlShiftUp
    End If
    Application.EnableEvents = True
End Sub

Please note that you may need to adjust the worksheet names in the VBA code based on your actual worksheet names.

 

Tiffany-

 

Just wanted to follow up and see if you were able to get your issue sorted out?  If you're still having trouble feel free to reach back out.  Always happy to help!  That's what the Excel Community is here for!

Thank you for this solution.  I was able to use it for my needs.

 

However, rows are also removed and sent to the completed sheet when I copy and paste seemingly unrelated cells to that row.

 

So, for a row which is not marked as "complete", I paste a few cells from another sheet.  As soon as I paste, the row is moved.  The cells I am pasting to not include the cell I am using to mark it as "Complete"

 

@Matt Mickle can we send back from completed to project list?

@Matt Mickle  Is it possible to do this on google docs. I need the spread sheet to stay on the shared drive.

@Matt Mickle 

 

Matt,

 

I have a similar project as Tiffany's. I tried the suggested script with minor changes and was able to have it work except for deleting the target row(s). Now, after a few edits I cannot get the script to work at all? No errors. I am sure it is maybe something simple, but I am not able to find the solution. I have pasted the script below. Any help would be appreciated. 

 

clipboard_image_1.png

 

clipboard_image_0.png

Chris

This is working today? Not sure what changed, but working perfectly.

 

If anyone has a suggestion to change the copy and paste function to copy and paste values, please let me know....

 

Thank you,

 

Chris

@cascherfeld To paste values, move the destination to a new line and add the PasteSpecial argument:

 

Range("A" & Target.Row & ":N" & Target.Row).Copy
Sheets("Meridian_Completed").Range("A" & LrowCompleted + 1).PasteSpecial Paste:=xlPasteValues

 

HTH

@Smitty Smith 

 

Thanks for the help! I am receiving a syntax error. Please advise if I have this correct...

 

clipboard_image_0.png

@cascherfeld The .PasteSpecial Paste:=xlPasteValues part needs to be on the same line.

 

The forum wrapped the text since I didn't post with code tags.

 

 

@Smitty Smith 

 

Thanks Smitty! Works perfectly!

@Smitty Smith 

Hello I have a similar situation as above and was able to get the code you helped them with to work for me for the most part . The issue I am running into is when I use this code it pastes on row 1 of the sheet I am directing it to so every time something moves from sheet 1 to sheet 2 it is pasting over my first row of information instead of the next blank row. I am not sure how to resolve this if you have any suggestions I would really appreciate it. 

@Smitty Smith I was wondering if you got the issue resolved? I am having the same issue where I paste data into the spreadsheet and then it cuts row 2 and past to sheet 2.

@Matt Mickle 

Great providing this outstanding Project to the Excel community. I have mine all setup but is there a way to have the exact same setup with using Share Mode.

@Matt Mickle 

Matt I know you posted this awhile ago and it works but if you paste into the first worksheet if moves the data to the second one even if word completed is not added and deletes the row below - is there a solution to stop this ?

Dear All

 

I have used this code and it works great.

Although, i would like to incorporate a msgbox to ask the user to confirm, before the copy/paste/delete actions are being done.

 

Any help would be much appreciated!

 

thanks

David

Hello, I tried the link and whenever I add ByVal Target As Range in the function the macro disappears as one of my macro's and cannot be run. Here is my code below.

 

 

Private Sub MoveBasedOnValue(ByVal Target As Range)
'Move row to new spreadsheet
On Error Resume Next
Application.EnableEvents = False
'If Cell that is edited is in column B and the value is completed then
If Target.Column = 2 And Target.Value = "COMPLETED - ARCHIVE" Then
'Define last row on completed worksheet to know where to place the row of data
LrowCompleted = Sheets("Completed").Cells(Rows.Count, "A").End(xlUp).Row
'Copy and paste data
Range("A" & Target.Row & ":B" & Target.Row).Copy Sheets("Completed").Range("A" & LrowCompleted + 1).xlPasteValues
'Delete Row from Project List
Range("A" & Target.Row & ":B" & Target.Row).Delete xlShiftUp
End If
Application.EnableEvents = True
End Sub