SOLVED

Move row to new sheet auto matically when updated as complete

%3CLINGO-SUB%20id%3D%22lingo-sub-3374206%22%20slang%3D%22en-US%22%3EMove%20row%20to%20new%20sheet%20auto%20matically%20when%20updated%20as%20complete%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3374206%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20Project%20Information%20Schedule%20with%20projects%20listed%20in%20column%20C%20rows%203%20to%20150%20with%20information%20for%20each%20project%20in%20the%20same%20row.%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20column%20that%20gets%20manually%20updated%20from%200%25%20to%20100%25.%20Once%20it%20is%20100%25%20it%20indicates%20as%20Project%20completed.%3C%2FP%3E%3CP%3EI%20want%20the%20sheet%20to%20automatically%20move%20the%20entire%20row%20of%20the%20completed%20project%20to%20a%20sheet%20in%20the%20same%20work%20book%20called%20Completed%20Projects%20and%20remove%20the%20row%20from%20the%20sheet%20with%20the%20projects%20in%20progrees%20sheet.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3374206%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3374431%22%20slang%3D%22en-US%22%3ERe%3A%20Move%20row%20to%20new%20sheet%20auto%20matically%20when%20updated%20as%20complete%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3374431%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1390102%22%20target%3D%22_blank%22%3E%40Gerdus4%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESince%20you%20did%20not%20provide%20any%20detail%20on%20which%20is%20the%20column%20where%20you%20change%20the%20%25%20completed%20status%20of%20a%20project%20and%20which%20range%20is%20to%20be%20copied%20from%20Progress%20Sheet%20to%20Completed%20Sheet%2C%20I%20am%20assuming%20that%20the%20layout%20is%20similar%20to%20the%20attached%20where%20column%20M%20is%20the%20%25%20Completed%20column%20which%20is%20manually%20filled.%20The%20Progress%20Sheet%20Module%20in%20the%20attached%20contains%20the%20following%20Change_Event%20Code%20so%20once%20you%20change%20the%20%25Completed%20in%20column%20M%20for%20any%20project%20in%20column%20C%20to%20100%25%2C%20that%20row%20will%20be%20copied%20to%20the%20Completed%20Sheet%20and%20will%20be%20deleted%20from%20the%20Progress%20Sheet.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20modify%20the%20code%20below%20as%20per%20your%20requirement.%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-visual-basic%22%3E%3CCODE%3EPrivate%20Sub%20Worksheet_Change(ByVal%20Target%20As%20Range)%0AIf%20Target.CountLarge%20%26gt%3B%201%20Then%20Exit%20Sub%0A%0ADim%20wsProgress%20%20%20%20%20%20As%20Worksheet%0ADim%20wsCompleted%20%20%20%20%20As%20Worksheet%0ADim%20dlr%20%20%20%20%20%20%20%20%20%20%20%20%20As%20Long%0ADim%20r%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20As%20Long%0A%0ASet%20wsProgress%20%3D%20Worksheets(%22Progress%22)%0ASet%20wsCompleted%20%3D%20Worksheets(%22Completed%22)%0A%0AOn%20Error%20GoTo%20Skip%3A%0A%0AIf%20Target.Column%20%3D%2013%20And%20Target.Row%20%26gt%3B%202%20Then%20%20%20'13%20here%20means%20Column%20M%20which%20is%20%25Completed%20Column%20on%20Progress%20Sheet.%20Change%20it%20as%20per%20your%20need%0A%20%20%20%20Application.EnableEvents%20%3D%20False%0A%20%20%20%20If%20Target.Value%20%3D%201%20Then%0A%20%20%20%20%20%20%20%20r%20%3D%20Target.Row%0A%20%20%20%20%20%20%20%20dlr%20%3D%20wsCompleted.Cells(Rows.Count%2C%20%22A%22).End(xlUp).Row%20%2B%201%0A%20%20%20%20%20%20%20%20'Following%20line%20will%20coply%20the%20range%20A%3AL%20to%20the%20Completed%20Sheet%20starting%20from%20column%20A%0A%20%20%20%20%20%20%20%20wsProgress.Range(%22A%22%20%26amp%3B%20r%20%26amp%3B%20%22%3AL%22%20%26amp%3B%20r).Copy%20wsCompleted.Range(%22A%22%20%26amp%3B%20dlr)%0A%20%20%20%20%20%20%20%20wsProgress.Rows(r).Delete%0A%20%20%20%20End%20If%0AEnd%20If%0A%0ASkip%3A%0AApplication.EnableEvents%20%3D%20True%0AEnd%20Sub%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3375069%22%20slang%3D%22en-US%22%3ERe%3A%20Move%20row%20to%20new%20sheet%20auto%20matically%20when%20updated%20as%20complete%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3375069%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1390102%22%20target%3D%22_blank%22%3E%40Gerdus4%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETo%20do%20what%20you%20describe%20is%20either%20a%20manual%20process%20(Ctrl%2FX%20followed%20by%20Ctrl%2FV)%20or%20requires%20imperative%20style%20code%20(you%20have%20been%20provided%20with%20an%20Excel%20VBA%20solution%2C%20driven%20by%20the%20worksheet%20change%20event).%3C%2FP%3E%3CP%3EThe%20closest%20that%20you%20can%20get%20with%20worksheet%20formula%20is%20to%20set%20up%20sheets%20for%20on-going%20projects%20and%20another%20for%20completed%20projects.%26nbsp%3B%20Functional%20programming%20approaches%20will%20always%20leave%20the%20user%20input%20unaltered%2C%20but%20the%20formulas%20on%20the%20new%20sheets%20can%20create%20filtered%20copies.%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3E%3D%20FILTER(ProgressTbl%2C%20ProgressTbl%5B%25Completed%5D%3D1)%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3378237%22%20slang%3D%22en-US%22%3ERe%3A%20Move%20row%20to%20new%20sheet%20auto%20matically%20when%20updated%20as%20complete%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3378237%22%20slang%3D%22en-US%22%3EThank%20you%20very%20much.%3CBR%20%2F%3Ewhen%20I%20download%20the%20sheet%20you%20provided%20the%20codes%20work%2C%20but%20when%20I%20transfer%20the%20code%20to%20my%20sheet%20it%20does%20not%20activate%20the%20code.%3CBR%20%2F%3EI%20have%20saved%20my%20worksbook%20as%20macros%20enabled.%3CBR%20%2F%3Ewhen%20i%20press%20the%20play%20button%20the%20window%20opens%20to%20choose%20the%20macros%20but%20it%20is%20not%20listed%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3378614%22%20slang%3D%22en-US%22%3ERe%3A%20Move%20row%20to%20new%20sheet%20auto%20matically%20when%20updated%20as%20complete%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3378614%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1390102%22%20target%3D%22_blank%22%3E%40Gerdus4%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20formulas%20I%20used%20do%20not%20require%20macros%20to%20be%20enabled%20as%20they%20are%20simply%20worksheet%20formulas.%26nbsp%3B%20What%20they%20do%20require%20is%20that%20you%20identify%20the%20source%20data%20by%20naming%20it.%26nbsp%3B%20I%20achieved%20that%20by%20converting%20the%20input%20data%20range%20to%20an%20Excel%20Table%20(Home%2FStyles%2FFormat_as%20_Table)%20and%20renaming%20it%20from%20'Table1'%20to%20'ProgressTbl'%20using%20the%20Table%20Name%20box%20on%20the%20Table_Design%20ribbon%20tab%20that%20shows%20when%20a%20Table%20is%20selected.%26nbsp%3B%20The%20advantage%20of%20all%20this%20is%20that%20tables%20references%20grow%20as%20data%20is%20added%20so%20the%20dependent%20formulas%20always%20address%20the%20correct%20region.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20you%20were%20to%20decide%20that%20the%20formula%20approach%20is%20sufficient%26nbsp%3B%20then%20the%20macros%20would%20need%20to%20be%20disabled%3B%20otherwise%20they%20will%20'steal'%20your%20input%20data%20and%20'hide'%20it%20on%20the%20Completed'%20sheet%20(which%20is%20precisely%20what%20they%20were%20written%20to%20do).%26nbsp%3B%20The%20approach%20I%20would%20recommend%20is%20simply%20that%20which%20fits%20into%20your%20business%20processes%20the%20better.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3378990%22%20slang%3D%22en-US%22%3ERe%3A%20Move%20row%20to%20new%20sheet%20auto%20matically%20when%20updated%20as%20complete%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3378990%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1390102%22%20target%3D%22_blank%22%3E%40Gerdus4%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETo%20implement%20the%20code%20to%20your%20actual%20workbook%2C%20please%20follow%20these%20steps...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1.%20Right%20click%20on%20Sheet%20Tab%20Name%20and%20choose%20View%20Code%2C%20this%20will%20open%20the%20VB%20Editor%20Code%20Window.%3C%2FP%3E%3CP%3E2.%20Copy%20the%20code%20from%20the%20above%20post%2C%20and%20paste%20it%20into%20the%20opened%20code%20window.%3C%2FP%3E%3CP%3E3.%20Save%20your%20workbook%20as%20a%20Macro-Enabled%20workbook.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20code%20is%20a%20Change%20Event%20code%20and%20it%20will%20run%20automatically%20once%20input%20the%20%25Completed%20value%20in%20the%20target%20column.%20As%20per%20the%20existing%20code%2C%20the%20code%20will%20be%20triggered%20automatically%20if%20you%20input%20the%20value%20in%20column%2013%20i.e.%20column%20M.%20Please%20change%20it%20in%20the%20code%20as%20per%20your%20need.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3384638%22%20slang%3D%22en-US%22%3ERe%3A%20Move%20row%20to%20new%20sheet%20auto%20matically%20when%20updated%20as%20complete%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3384638%22%20slang%3D%22en-US%22%3EThank%20you%20very%20much.%3CBR%20%2F%3EI%20need%20another%20favour.%3CBR%20%2F%3ESome%20times%20I%20need%20to%20re-open%20a%20project%20that%20has%20been%20completed%20due%20to%20new%20work.%3CBR%20%2F%3EI%20will%20do%20this%20by%20changing%20the%20percenage%20complete%20from%20100%25%20to%20anything%20below%20100%25%3CBR%20%2F%3EOnce%20I%20have%20done%20the%20change%20I%20want%20the%20project%20to%20automatically%20goback%20to%20the%20In%20Progress%20sheet.%3CBR%20%2F%3Eit%20can%20add%20it%20back%20at%20the%20bottom.%3CBR%20%2F%3E%3CBR%20%2F%3ERegards%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3386020%22%20slang%3D%22en-US%22%3ERe%3A%20Move%20row%20to%20new%20sheet%20auto%20matically%20when%20updated%20as%20complete%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3386020%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1390102%22%20target%3D%22_blank%22%3E%40Gerdus4%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20find%20the%20two%20codes%20below%2C%20one%20for%20Progress%20Sheet%20Module%20and%20another%20for%20Completed%20Sheet%20Module.%20I%20have%20tweaked%20the%20Progress%20Sheet%20Module%20code%20a%20bit%20so%20not%20it%20will%20also%20copy%20the%20%25Completed%20column%20to%20the%20Completed%20Sheet%20i.e.%20now%20it%20will%20copy%20the%20range%20A%3AM%20instead%20of%20A%3AL.%3C%2FP%3E%3CP%3EYou%20will%20have%20to%20follow%20the%20same%20steps%20I%20mentioned%20in%20my%20last%20post%20to%20place%20the%20codes%20on%20both%20the%20Sheet%20Modules.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CU%3E%3CSTRONG%3EProgress%20Sheet%20Module%20Code%3A%3C%2FSTRONG%3E%3C%2FU%3E%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-visual-basic%22%3E%3CCODE%3EPrivate%20Sub%20Worksheet_Change(ByVal%20Target%20As%20Range)%0AIf%20Target.CountLarge%20%26gt%3B%201%20Then%20Exit%20Sub%0A%0ADim%20wsProgress%20%20%20%20%20%20As%20Worksheet%0ADim%20wsCompleted%20%20%20%20%20As%20Worksheet%0ADim%20dlr%20%20%20%20%20%20%20%20%20%20%20%20%20As%20Long%0ADim%20r%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20As%20Long%0A%0ASet%20wsProgress%20%3D%20Worksheets(%22Progress%22)%0ASet%20wsCompleted%20%3D%20Worksheets(%22Completed%22)%0A%0AOn%20Error%20GoTo%20Skip%3A%0A%0AIf%20Target.Column%20%3D%2013%20And%20Target.Row%20%26gt%3B%202%20Then%20%20%20'13%20here%20means%20Column%20M%20which%20is%20%25Completed%20Column%20on%20Progress%20Sheet.%20Change%20it%20as%20per%20your%20need%0A%20%20%20%20Application.EnableEvents%20%3D%20False%0A%20%20%20%20If%20Target.Value%20%3D%201%20Then%0A%20%20%20%20%20%20%20%20r%20%3D%20Target.Row%0A%20%20%20%20%20%20%20%20dlr%20%3D%20wsCompleted.Cells(Rows.Count%2C%20%22A%22).End(xlUp).Row%20%2B%201%0A%20%20%20%20%20%20%20%20'Following%20line%20will%20coply%20the%20range%20A%3AM%20to%20the%20Completed%20Sheet%20at%20the%20bottom%0A%20%20%20%20%20%20%20%20wsProgress.Range(%22A%22%20%26amp%3B%20r%20%26amp%3B%20%22%3AM%22%20%26amp%3B%20r).Copy%20wsCompleted.Range(%22A%22%20%26amp%3B%20dlr)%0A%20%20%20%20%20%20%20%20wsProgress.Rows(r).Delete%0A%20%20%20%20End%20If%0AEnd%20If%0A%0ASkip%3A%0AApplication.EnableEvents%20%3D%20True%0AEnd%20Sub%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CU%3E%3CSTRONG%3ECompleted%20Sheet%20Module%20Code%3A%3C%2FSTRONG%3E%3C%2FU%3E%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-visual-basic%22%3E%3CCODE%3EPrivate%20Sub%20Worksheet_Change(ByVal%20Target%20As%20Range)%0AIf%20Target.CountLarge%20%26gt%3B%201%20Then%20Exit%20Sub%0A%0ADim%20wsProgress%20%20%20%20%20%20As%20Worksheet%0ADim%20wsCompleted%20%20%20%20%20As%20Worksheet%0ADim%20dlr%20%20%20%20%20%20%20%20%20%20%20%20%20As%20Long%0ADim%20r%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20As%20Long%0A%0ASet%20wsProgress%20%3D%20Worksheets(%22Progress%22)%0ASet%20wsCompleted%20%3D%20Worksheets(%22Completed%22)%0A%0AOn%20Error%20GoTo%20Skip%3A%0A%0AIf%20Target.Column%20%3D%2013%20And%20Target.Row%20%26gt%3B%202%20Then%20%20%20'13%20here%20means%20Column%20M%20which%20is%20%25Completed%20Column%20on%20Progress%20Sheet.%20Change%20it%20as%20per%20your%20need%0A%20%20%20%20Application.EnableEvents%20%3D%20False%0A%20%20%20%20If%20IsNumeric(Target.Value)%20And%20Target.Value%20%26lt%3B%201%20Then%0A%20%20%20%20%20%20%20%20r%20%3D%20Target.Row%0A%20%20%20%20%20%20%20%20dlr%20%3D%20wsProgress.Cells(Rows.Count%2C%20%22A%22).End(xlUp).Row%20%2B%201%0A%20%20%20%20%20%20%20%20'Following%20line%20will%20copy%20the%20range%20A%3AM%20to%20the%20Progress%20Sheet%20at%20the%20bottom%0A%20%20%20%20%20%20%20%20wsCompleted.Range(%22A%22%20%26amp%3B%20r%20%26amp%3B%20%22%3AM%22%20%26amp%3B%20r).Copy%20wsProgress.Range(%22A%22%20%26amp%3B%20dlr)%0A%20%20%20%20%20%20%20%20wsCompleted.Rows(r).Delete%0A%20%20%20%20End%20If%0AEnd%20If%0A%0ASkip%3A%0AApplication.EnableEvents%20%3D%20True%0AEnd%20Sub%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20find%20the%20attached%20with%20both%20the%20codes%20in%20place.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3397584%22%20slang%3D%22en-US%22%3ERe%3A%20Move%20row%20to%20new%20sheet%20auto%20matically%20when%20updated%20as%20complete%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3397584%22%20slang%3D%22en-US%22%3Ethank%20you%20very%20much%2C%20much%20appreciated.%3CBR%20%2F%3Equick%20and%20easy.%3CBR%20%2F%3Ethe%20best%20assistance%20I%20got%20on%20this%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3397835%22%20slang%3D%22en-US%22%3ERe%3A%20Move%20row%20to%20new%20sheet%20auto%20matically%20when%20updated%20as%20complete%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3397835%22%20slang%3D%22en-US%22%3E%3CP%3EYou're%20welcome%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1390102%22%20target%3D%22_blank%22%3E%40Gerdus4%3C%2FA%3E!%20Glad%20I%20could%20help.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3399235%22%20slang%3D%22en-US%22%3ERe%3A%20Move%20row%20to%20new%20sheet%20auto%20matically%20when%20updated%20as%20complete%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3399235%22%20slang%3D%22en-US%22%3EI%20have%20another%20request%20%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Aslightly_smiling_face%3A%22%3E%3C%2FLI-EMOJI%3E%3CBR%20%2F%3EI%20want%20to%20have%20like%20a%20plus%20sign%20to%20add%20a%20new%20row%20or%20something%20simmular%20but%20it%20needs%20to%20add%20the%20previous%20row's%20formulas%2C%20hyper%20links%2C%20formatting%20etc%2C%20without%20the%20data.%3CBR%20%2F%3Eso%20a%20clean%20new%20line%20with%20formatting%20and%20formulas%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

I have a Project Information Schedule with projects listed in column C rows 3 to 150 with information for each project in the same row. 

I have a column that gets manually updated from 0% to 100%. Once it is 100% it indicates as Project completed.

I want the sheet to automatically move the entire row of the completed project to a sheet in the same work book called Completed Projects and remove the row from the sheet with the projects in progrees sheet.

 

10 Replies

@Gerdus4 

Since you did not provide any detail on which is the column where you change the % completed status of a project and which range is to be copied from Progress Sheet to Completed Sheet, I am assuming that the layout is similar to the attached where column M is the % Completed column which is manually filled. The Progress Sheet Module in the attached contains the following Change_Event Code so once you change the %Completed in column M for any project in column C to 100%, that row will be copied to the Completed Sheet and will be deleted from the Progress Sheet.

 

Please modify the code below as per your requirement.

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.CountLarge > 1 Then Exit Sub

Dim wsProgress      As Worksheet
Dim wsCompleted     As Worksheet
Dim dlr             As Long
Dim r               As Long

Set wsProgress = Worksheets("Progress")
Set wsCompleted = Worksheets("Completed")

On Error GoTo Skip:

If Target.Column = 13 And Target.Row > 2 Then   '13 here means Column M which is %Completed Column on Progress Sheet. Change it as per your need
    Application.EnableEvents = False
    If Target.Value = 1 Then
        r = Target.Row
        dlr = wsCompleted.Cells(Rows.Count, "A").End(xlUp).Row + 1
        'Following line will coply the range A:L to the Completed Sheet starting from column A
        wsProgress.Range("A" & r & ":L" & r).Copy wsCompleted.Range("A" & dlr)
        wsProgress.Rows(r).Delete
    End If
End If

Skip:
Application.EnableEvents = True
End Sub

 

 

@Gerdus4 

To do what you describe is either a manual process (Ctrl/X followed by Ctrl/V) or requires imperative style code (you have been provided with an Excel VBA solution, driven by the worksheet change event).

The closest that you can get with worksheet formula is to set up sheets for on-going projects and another for completed projects.  Functional programming approaches will always leave the user input unaltered, but the formulas on the new sheets can create filtered copies.

= FILTER(ProgressTbl, ProgressTbl[%Completed]=1)
Thank you very much.
when I download the sheet you provided the codes work, but when I transfer the code to my sheet it does not activate the code.
I have saved my worksbook as macros enabled.
when i press the play button the window opens to choose the macros but it is not listed

@Gerdus4 

The formulas I used do not require macros to be enabled as they are simply worksheet formulas.  What they do require is that you identify the source data by naming it.  I achieved that by converting the input data range to an Excel Table (Home/Styles/Format_as _Table) and renaming it from 'Table1' to 'ProgressTbl' using the Table Name box on the Table_Design ribbon tab that shows when a Table is selected.  The advantage of all this is that tables references grow as data is added so the dependent formulas always address the correct region.

 

If you were to decide that the formula approach is sufficient  then the macros would need to be disabled; otherwise they will 'steal' your input data and 'hide' it on the Completed' sheet (which is precisely what they were written to do).  The approach I would recommend is simply that which fits into your business processes the better.

@Gerdus4 

 

To implement the code to your actual workbook, please follow these steps...

 

1. Right click on Sheet Tab Name and choose View Code, this will open the VB Editor Code Window.

2. Copy the code from the above post, and paste it into the opened code window.

3. Save your workbook as a Macro-Enabled workbook.

 

The code is a Change Event code and it will run automatically once input the %Completed value in the target column. As per the existing code, the code will be triggered automatically if you input the value in column 13 i.e. column M. Please change it in the code as per your need.

Thank you very much.
I need another favour.
Some times I need to re-open a project that has been completed due to new work.
I will do this by changing the percenage complete from 100% to anything below 100%
Once I have done the change I want the project to automatically goback to the In Progress sheet.
it can add it back at the bottom.

Regards
best response confirmed by Gerdus4 (Occasional Contributor)
Solution

@Gerdus4 

 

Please find the two codes below, one for Progress Sheet Module and another for Completed Sheet Module. I have tweaked the Progress Sheet Module code a bit so not it will also copy the %Completed column to the Completed Sheet i.e. now it will copy the range A:M instead of A:L.

You will have to follow the same steps I mentioned in my last post to place the codes on both the Sheet Modules.

 

Progress Sheet Module Code:

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.CountLarge > 1 Then Exit Sub

Dim wsProgress      As Worksheet
Dim wsCompleted     As Worksheet
Dim dlr             As Long
Dim r               As Long

Set wsProgress = Worksheets("Progress")
Set wsCompleted = Worksheets("Completed")

On Error GoTo Skip:

If Target.Column = 13 And Target.Row > 2 Then   '13 here means Column M which is %Completed Column on Progress Sheet. Change it as per your need
    Application.EnableEvents = False
    If Target.Value = 1 Then
        r = Target.Row
        dlr = wsCompleted.Cells(Rows.Count, "A").End(xlUp).Row + 1
        'Following line will coply the range A:M to the Completed Sheet at the bottom
        wsProgress.Range("A" & r & ":M" & r).Copy wsCompleted.Range("A" & dlr)
        wsProgress.Rows(r).Delete
    End If
End If

Skip:
Application.EnableEvents = True
End Sub

 

Completed Sheet Module Code:

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.CountLarge > 1 Then Exit Sub

Dim wsProgress      As Worksheet
Dim wsCompleted     As Worksheet
Dim dlr             As Long
Dim r               As Long

Set wsProgress = Worksheets("Progress")
Set wsCompleted = Worksheets("Completed")

On Error GoTo Skip:

If Target.Column = 13 And Target.Row > 2 Then   '13 here means Column M which is %Completed Column on Progress Sheet. Change it as per your need
    Application.EnableEvents = False
    If IsNumeric(Target.Value) And Target.Value < 1 Then
        r = Target.Row
        dlr = wsProgress.Cells(Rows.Count, "A").End(xlUp).Row + 1
        'Following line will copy the range A:M to the Progress Sheet at the bottom
        wsCompleted.Range("A" & r & ":M" & r).Copy wsProgress.Range("A" & dlr)
        wsCompleted.Rows(r).Delete
    End If
End If

Skip:
Application.EnableEvents = True
End Sub

 

Please find the attached with both the codes in place.

 

 

 

thank you very much, much appreciated.
quick and easy.
the best assistance I got on this

You're welcome @Gerdus4! Glad I could help.

I have another request
I want to have like a plus sign to add a new row or something simmular but it needs to add the previous row's formulas, hyper links, formatting etc, without the data.
so a clean new line with formatting and formulas