when cell value changes, copy the information to a new worksheet but also retain each change

%3CLINGO-SUB%20id%3D%22lingo-sub-182681%22%20slang%3D%22en-US%22%3Ewhen%20cell%20value%20changes%2C%20copy%20the%20information%20to%20a%20new%20worksheet%20but%20also%20retain%20each%20change%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-182681%22%20slang%3D%22en-US%22%3E%3CP%3EHello.%3C%2FP%3E%3CP%3EHow%20would%20I%20copy%20a%20cell%20(%20or%20row%20actually)%20to%20a%20new%20worksheet%20when%20I%20make%20a%20change%20to%20a%20particular%20cell%20in%20the%20first%20worksheet%3F%20AND%20whenever%20I%20make%20a%20change%20to%20that%20particular%20cell%20it%20would%20not%20only%20make%20a%20copy%20of%20it%20but%20would%20continue%20to%20make%20copies%20onto%20a%20different%20worksheet%20without%20overwriting%20itself%3F%3C%2FP%3E%3CP%3Eexample%3A%3C%2FP%3E%3CP%3Esheet%201%3C%2FP%3E%3CP%3EB2%20has%20a%20value.%20I%20change%20the%20value.%20It%20copies%20the%20value%20to%20sheet%202.%20I%20then%20change%20the%20value%20on%20sheet%201%20again.%20It%20again%20copies%20the%20value%20onto%20sheet%202%20but%20it%20doesn't%20overwrite%20it%2C%20it%20just%20populates%20the%20next%20row%20number%20over.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-182681%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EChanging%20cell%20value%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMacros%20%26amp%3B%20VBA%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-331782%22%20slang%3D%22en-US%22%3ERe%3A%20when%20cell%20value%20changes%2C%20copy%20the%20information%20to%20a%20new%20worksheet%20but%20also%20retain%20each%20change%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-331782%22%20slang%3D%22en-US%22%3E%3CP%3ELogaraj%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20similar%20problem%20as%20what%20you%20helped%20hopr37%20with.%26nbsp%3B%20I%20have%20a%20worksheet%20that%20keeps%20track%20of%20labor.%26nbsp%3B%20When%20we%20take%20a%20new%20job%2C%20labor%20gets%20added%20to%20it%2C%20and%20when%20we%20complete%20portions%20of%20the%20labor%2C%20or%20ship%20a%20completed%20job%2C%20the%20labor%20comes%20off.%26nbsp%3B%20What%20I'd%20like%20to%20do%20is%20keep%20track%20of%20labor%20as%20it%20happens.%26nbsp%3B%20We%20run%20into%20a%20problem%20when%20we%20ship%20lets%20say%20a%20job%20that%20has%2010%20hours%20of%20labor%20on%20it%2C%20and%20then%20take%20on%20a%20job%20that%20has%2010%20hours%20of%20labor%20on%20it%20in%20the%20same%20day.%26nbsp%3B%20The%20number%20changes%2C%20but%20changes%20back%20to%20the%20original%20amount%2C%20so%20we%20don't%20know%20how%20efficient%20jobs%20are%20moving%20through%20production.%26nbsp%3B%20I'd%20like%20to%20record%20any%20increase%20changes%20to%20that%20number%20in%20one%20cell%2C%20and%20any%20decreases%20to%20that%20number%20in%20a%20different%20cell.%26nbsp%3B%20For%20a%20twist%2C%20I%20want%20those%20changes%20to%20change%20throughout%20the%20week%2C%20as%20long%20as%20TODAY()'s%20date%20is%20before%20a%20date%20I%20have%20listed%20in%20another%20cell.%26nbsp%3B%20Does%20this%20make%20sense%3F%26nbsp%3B%20I'd%20rather%20not%20post%20the%20worksheet%20to%20the%20forum%2C%20but%20will%20send%20it%20to%20you%20directly.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-184134%22%20slang%3D%22en-US%22%3ERe%3A%20when%20cell%20value%20changes%2C%20copy%20the%20information%20to%20a%20new%20worksheet%20but%20also%20retain%20each%20change%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-184134%22%20slang%3D%22en-US%22%3E%3CP%3EThat%20works%20great.%20Thank%20you%20so%20much%20for%20your%20help!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-184030%22%20slang%3D%22en-US%22%3ERe%3A%20when%20cell%20value%20changes%2C%20copy%20the%20information%20to%20a%20new%20worksheet%20but%20also%20retain%20each%20change%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-184030%22%20slang%3D%22en-US%22%3E%3CP%3Ehopr37%20hotmail%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1.%20This%20is%20answer%20for%20your%20first%20question.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENote%3A%20If%20you%20have%20any%20headers%20or%20any%20value%20in%20the%20range%20%22C1%2CC2%2CC3%22%2C%20there%20is%20no%20problem.%20You%20can%20continue%20with%20the%20following.%20If%20not%2C%20put%26nbsp%3Bspace%20in%20blank%20cells%20in%20C1%2CC2%2CC3.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPrivate%20Sub%20Worksheet_Change(ByVal%20Target%20As%20Range)%3CBR%20%2F%3EIf%20Not%20Intersect(Target%2C%20Range(%22B%3AB%22))%20Is%20Nothing%20Then%3CBR%20%2F%3EActiveCell.Offset(-1%2C%200).Activate%3CBR%20%2F%3Ea%20%3D%20Sheets(%22Sheet2%22).Cells(Rows.Count%2C%20%22C%22).End(xlUp).Row%20%2B%201%3CBR%20%2F%3ESheets(%22Sheet2%22).Range(%22C%22%20%26amp%3B%20a).Value%20%3D%20ActiveCell.Value%3CBR%20%2F%3EActiveCell.Offset(1%2C%200).Select%3CBR%20%2F%3EEnd%20If%3CBR%20%2F%3EEnd%20Sub%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E2.%20Just%20clarify%20the%20following.%3C%2FP%3E%3CP%3Ea.%20So%20if%20you%20have%20value%20%222%22%20in%20%22Sheet2%22%2C%20this%20will%20result%20to%20bring%20above%20cell's%20value.%3C%2FP%3E%3CP%3EEg.%20%22Sheet2%22%2C%20%22C6%22%20value%20is%202%2C%20it%20will%20bring%20%22C5%22%20value.%3C%2FP%3E%3CP%3E%3CSPAN%3E%22Sheet2%22%2C%20%22C10%22%20value%20is%202%2C%20it%20will%20bring%20%22%3C%2FSPAN%3E%3CSPAN%3EC9%22%20value.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3ERight%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EIf%20this%20is%20not%20you%20want.%20Just%20explain%20me%20step%20by%20step.%20Put%20your%20questions%20one%20by%20one%20not%20in%20same%20paragraph.%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3EIf%20you%20gave%20example%2C%20i%20will%20solve%20your%20question%20easily.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-183695%22%20slang%3D%22en-US%22%3ERe%3A%20when%20cell%20value%20changes%2C%20copy%20the%20information%20to%20a%20new%20worksheet%20but%20also%20retain%20each%20change%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-183695%22%20slang%3D%22en-US%22%3E%3CP%3EThat%20works%20great!%3C%2FP%3E%3CP%3EOne%20question.%20Can%20I%20have%20it%20start%20at%20a%20particular%20cell%3F%3C%2FP%3E%3CP%3EIt%20wants%20to%20start%20off%20by%20copying%20the%20headers%20I'm%20using%20and%20I%20need%20it%20to%20start%20at%20C4.%3C%2FP%3E%3CP%3Eactually.%20After%20trying%20it%2C%20it%20seems%20to%20post%20the%20number%20above%20the%20cell%20I%20change.%3C%2FP%3E%3CP%3ESo%20if%20C4%3D%20a%20value%20of%202%20and%20I%20change%20that%20value%2C%20it%20copies%20value%20in%20C3%20to%20the%20second%20worksheet.%3C%2FP%3E%3CP%3Eso%20every%20cell%20I%20change%20on%20the%20first%20sheet%20copies%20the%20value%20from%20sheet%201%20from%20the%20cell%20ABOVE%20the%20cell%20value%20I%20change.%3C%2FP%3E%3CP%3Edoes%20that%20make%20sense%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20think%20I%20got%20it...%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-183673%22%20slang%3D%22en-US%22%3ERe%3A%20when%20cell%20value%20changes%2C%20copy%20the%20information%20to%20a%20new%20worksheet%20but%20also%20retain%20each%20change%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-183673%22%20slang%3D%22en-US%22%3E%3CP%3ETry%20this.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20after%20entering%20the%20value%20press%20enter%2C%20don't%20try%20downarrow%20%2F%20tab%20.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPrivate%20Sub%20Worksheet_Change(ByVal%20Target%20As%20Range)%3CBR%20%2F%3EIf%20Not%20Intersect(Target%2C%20Range(%22B%3AB%22))%20Is%20Nothing%20Then%3CBR%20%2F%3Ea%20%3D%20Sheets(%22Sheet2%22).Cells(Rows.Count%2C%20%22A%22).End(xlUp).Row%20%2B%201%3CBR%20%2F%3EActiveCell.Offset(-1%2C%200).Activate%3CBR%20%2F%3ESheets(%22Sheet2%22).Range(%22A%22%20%26amp%3B%20a).Value%20%3D%20ActiveCell.Value%3CBR%20%2F%3EActiveCell.Offset(1%2C%200).Select%3CBR%20%2F%3EEnd%20If%3CBR%20%2F%3EEnd%20Sub%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-183626%22%20slang%3D%22en-US%22%3ERe%3A%20when%20cell%20value%20changes%2C%20copy%20the%20information%20to%20a%20new%20worksheet%20but%20also%20retain%20each%20change%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-183626%22%20slang%3D%22en-US%22%3E%3CP%3EHad%20to%20change%20a%20value%20and%20it's%20working.%20Thank%20you%20so%20much.%3C%2FP%3E%3CP%3ENow%20%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Aslightly_smiling_face%3A%22%3E%3C%2FLI-EMOJI%3E%3C%2FP%3E%3CP%3EI%20didn't%20want%20to%20look%20at%20too%20much%20of%20that%20code%20until%20I%20understand%20it%20however%2C%20is%20it%20now%20possible%20to%20have%20the%20same%20effect%20but%20instead%20of%20just%20changing%20one%20cell%20value%20it%20could%20do%20the%20same%20thing%20no%20matter%20what%20cell%20I%20change%20in%20column%20B%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eassuming%3A%26nbsp%3B%3CSPAN%3EIf%20Target.Address%20%3D%20%22%24B%242%22%3C%2FSPAN%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3Emeans%20column%20B%20cell2%2C%20could%20this%20be%20changed%20so%20that%20any%20cell%20in%20column%20B%20could%20do%20the%20same%20thing%20and%20not%20just%20column%20B%20cell%202%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-183625%22%20slang%3D%22en-US%22%3ERe%3A%20when%20cell%20value%20changes%2C%20copy%20the%20information%20to%20a%20new%20worksheet%20but%20also%20retain%20each%20change%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-183625%22%20slang%3D%22en-US%22%3E%3CP%3EThank%20you%20for%20the%20reply%20but%20it%20doesn't%20seem%20to%20do%20anything.%20I'll%20keep%20seeing%20what%20I'm%20doing%20wrong%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-183579%22%20slang%3D%22en-US%22%3ERe%3A%20when%20cell%20value%20changes%2C%20copy%20the%20information%20to%20a%20new%20worksheet%20but%20also%20retain%20each%20change%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-183579%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3Bhopr37%20hotmail%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAssume%20you%20have%202%20sheets%20like%20(Sheet1%2C%20Sheet2).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1.%20Right%20click%20the%20Sheet1%20tab%20-%26gt%3B%20Click%20View%20Code%3C%2FP%3E%3CP%3E2.%20Paste%20the%20following.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPrivate%20Sub%20Worksheet_Change(ByVal%20Target%20As%20Range)%3CBR%20%2F%3EIf%20Target.Address%20%3D%20%22%24B%242%22%20Then%3CBR%20%2F%3Ea%20%3D%20Sheets(%22Sheet2%22).Cells(Rows.Count%2C%20%22A%22).End(xlUp).Row%20%2B%201%3CBR%20%2F%3ESheets(%22Sheet2%22).Range(%22A%22%20%26amp%3B%20a).Value%20%3D%20Sheets(%22Sheet1%22).Range(%22B2%22).Value%3CBR%20%2F%3EEnd%20If%3CBR%20%2F%3EEnd%20Sub%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-182799%22%20slang%3D%22en-US%22%3ERe%3A%20when%20cell%20value%20changes%2C%20copy%20the%20information%20to%20a%20new%20worksheet%20but%20also%20retain%20each%20change%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-182799%22%20slang%3D%22en-US%22%3E%3CP%3Eanyone%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1126681%22%20slang%3D%22en-US%22%3ERe%3A%20when%20cell%20value%20changes%2C%20copy%20the%20information%20to%20a%20new%20worksheet%20but%20also%20retain%20each%20change%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1126681%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F499076%22%20target%3D%22_blank%22%3E%40Despot91%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%2C%20Sorry%20now%20only%20i%20saw%20ur%20message.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20you%20already%20found%20solution%2C%20pls%20ignore%20this%20reply.%20If%20not%2C%20pls%20send%20sample%20worksheet.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1081041%22%20slang%3D%22en-US%22%3ERe%3A%20when%20cell%20value%20changes%2C%20copy%20the%20information%20to%20a%20new%20worksheet%20but%20also%20retain%20each%20change%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1081041%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F53299%22%20target%3D%22_blank%22%3E%40Logaraj%20Sekar%3C%2FA%3E%26nbsp%3BHello%20%2C%20I%20see%20you%20helped%20many%20people%20%2C%20so%20I%20hope%20you%20can%20help%20me%20out%20as%20well...%3C%2FP%3E%3CP%3EI%20have%20a%20worksheet%20with%20products%20I%20got%20in%20offer%20listed%20on%20it%2C%20what%20I%20am%20trying%20to%20do%20now%20is%20when%20I%20type%20number%20of%20pcs%20in%20amount%20in%20sheet2%20to%20automatically%20copy%20selected%20columns%20of%20that%20row%20to%20sheet1%20on%20the%20list%20of%20offer%20and%20move%20selection%20on%20next%20row%20so%20I%20would%20need%20only%20to%20type%20amounts%20in%20sheet2%20and%20then%20move%20to%20sheet1%20where%20it%20would%20all%20be%20listed.%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20I%20need%20is%20if%20value%20of%20cell%20H3%20-%20H98%20in%20sheet1%20is%20higher%20than%200%20to%20do%20following%3A%3C%2FP%3E%3CP%3E-%20Copy%20range%20B3-B98%20from%20sheet2%20to%20range%20B15-B53%20on%20sheet1%3C%2FP%3E%3CP%3E-%20Copy%20range%20H3-H98%20on%20sheet2%20to%20E15-E53%20on%20sheet1%26nbsp%3B%3C%2FP%3E%3CP%3E-%20Copy%20range%20I3-I98%20on%20sheet2%20to%20F15-F53%20on%20sheet1%26nbsp%3B%3C%2FP%3E%3CP%3E(So%20just%20those%20mentioned%20rows%20where%20column%20H%20is%20higher%20than%200%20should%20be%20copied%20and%20after%20coping%20to%20move%20to%20cell%20below%20where%20it%20will%20copy%20second%20product%20with%20amount%20higher%20than%200%20again%20without%20moving%20to%20sheet1%20until%20its%20all%20done)%3C%2FP%3E%3CP%3EIs%20this%20possible%20to%20be%20done%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20appologize%20if%20I%20was%20not%20clear%20as%20English%20is%20not%20my%20first%20language%20%2C%20so%20if%20something%20is%20not%20clear%20please%20let%20me%20know...%20And%20thanks%20for%20your%20help%20in%20advance!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-751032%22%20slang%3D%22en-US%22%3ERe%3A%20when%20cell%20value%20changes%2C%20copy%20the%20information%20to%20a%20new%20worksheet%20but%20also%20retain%20each%20change%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-751032%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F53299%22%20target%3D%22_blank%22%3E%40Logaraj%20Sekar%3C%2FA%3Ethe%20VBA%20code%20works%20perfect%20IF%20the%20data%20is%20inputted%20by%20hand%2C%20but%20if%20the%20data%20is%20changed%20by%20reference%20to%20another%20cell%20or%20workbook%20i.e.%20A1%3D%20sheet6%20C1%20and%20C1%20changes%20the%20A1%20value%20then%20it%20does%20-%20unfortunately!!!%20-%20not%20work.%20Rescue%20please!%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1013132%22%20slang%3D%22en-US%22%3ERe%3A%20when%20cell%20value%20changes%2C%20copy%20the%20information%20to%20a%20new%20worksheet%20but%20also%20retain%20each%20change%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1013132%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F53299%22%20target%3D%22_blank%22%3E%40Logaraj%20Sekar%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDear%20Logaraj_Sekar%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20noticed%20that%20you%20have%20helped%20someone%20with%20a%20similar%20problem%20to%20mine.%20I%20have%20used%20your%20code%20successfully.%20However%2C%20I%20would%20also%20like%20to%20add%20%22and%22%20function%20in%20my%20statement.You%20can%20see%20what%20I%20have%20done%20below%20(it%20is%20not%20currently%20working)%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EPrivate%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3ESub%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3EWorksheet_Change(%3CSPAN%3EByVal%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3ETarget%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3EAs%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3ERange)%3C%2FP%3E%3CP%3E%3CSPAN%3EIf%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%22B1%22%20%3D%20%22EURO%22%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3EAnd%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3ETarget.Address%20%3D%20%22%24B%242%22%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3EThen%3C%2FSPAN%3E%3C%2FP%3E%3CP%3Ea%20%3D%20Sheets(%22Sheet4%22).Cells(Rows.Count%2C%20%22A%22).End(xlUp).Row%20%2B%201%3C%2FP%3E%3CP%3ESheets(%22Sheet4%22).Range(%22A%22%20%26amp%3B%20a).Value%20%3D%20Sheets(%22Sheet2%22).Range(%22B2%22).Value%3C%2FP%3E%3CP%3EElse%3C%2FP%3E%3CP%3E%3CSPAN%3EIf%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%22B1%22%20%3D%20%22USD%22%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3EAnd%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3ETarget.Address%20%3D%20%22%24B%242%22%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3EThen%3C%2FSPAN%3E%3C%2FP%3E%3CP%3Ea%20%3D%20Sheets(%22Sheet4%22).Cells(Rows.Count%2C%20%22B%22).End(xlUp).Row%20%2B%201%3C%2FP%3E%3CP%3ESheets(%22Sheet4%22).Range(%22B%22%20%26amp%3B%20a).Value%20%3D%20Sheets(%22Sheet2%22).Range(%22B2%22).Value%3C%2FP%3E%3CP%3EEnd%20If%3C%2FP%3E%3CP%3EEnd%20Sub%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20like%20to%20specify%20that%20if%20B1%20contains%20the%20word%20%22EURO%22%20a%3CSPAN%3End%20the%20target%20address%20for%20the%20changing%20values%20is%20B2%20from%20sheet%202%3C%2FSPAN%3E%2C%20then%20I%20would%20like%20the%20values%20from%20B2%20to%20be%20placed%20in%20column%20A%20in%20sheet%204%2C%20else%20if%20B1%20contains%20the%20word%20%22USD%22%20%3CSPAN%3Ea%3C%2FSPAN%3E%3CSPAN%3End%20the%20target%20address%20for%20the%20changing%20values%20is%20B2%20from%20sheet%202%2C%20I%20would%20like%20the%20values%20from%20B2%3C%2FSPAN%3E%26nbsp%3Bto%20be%20placed%20in%20column%20B%20in%20sheet%204.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWould%20you%20be%20able%20to%20help%20me%20with%20this%20issue%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1024145%22%20slang%3D%22en-US%22%3ERe%3A%20when%20cell%20value%20changes%2C%20copy%20the%20information%20to%20a%20new%20worksheet%20but%20also%20retain%20each%20change%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1024145%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F459646%22%20target%3D%22_blank%22%3E%40natalib12%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETry%20this.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CFONT%3EPrivate%20Sub%20Worksheet_Change(ByVal%20Target%20As%20Range)%3CBR%20%2F%3EIf%20Target.Address%20%3D%20%22%24B%242%22%20And%20Range(%22B1%22).value%20%3D%20%22EURO%22%20Then%3CBR%20%2F%3Ea%20%3D%20Sheets(%22Sheet4%22).Cells(Rows.Count%2C%20%22A%22).End(xlUp).Row%20%2B%201%3CBR%20%2F%3ESheets(%22Sheet4%22).Range(%22A%22%20%26amp%3B%20a).Value%20%3D%20Sheets(%22Sheet2%22).Range(%22B2%22).Value%3CBR%20%2F%3EElse%3CBR%20%2F%3Ea%20%3D%20Sheets(%22Sheet4%22).Cells(Rows.Count%2C%20%22B%22).End(xlUp).Row%20%2B%201%3CBR%20%2F%3ESheets(%22Sheet4%22).Range(%22B%22%20%26amp%3B%20a).Value%20%3D%20Sheets(%22Sheet2%22).Range(%22B2%22).Value%3CBR%20%2F%3EEnd%20If%3CBR%20%2F%3EEnd%20Sub%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Contributor

Hello.

How would I copy a cell ( or row actually) to a new worksheet when I make a change to a particular cell in the first worksheet? AND whenever I make a change to that particular cell it would not only make a copy of it but would continue to make copies onto a different worksheet without overwriting itself?

example:

sheet 1

B2 has a value. I change the value. It copies the value to sheet 2. I then change the value on sheet 1 again. It again copies the value onto sheet 2 but it doesn't overwrite it, it just populates the next row number over.

64 Replies
Highlighted
Highlighted

Hi hopr37 hotmail,

 

Assume you have 2 sheets like (Sheet1, Sheet2).

 

1. Right click the Sheet1 tab -> Click View Code

2. Paste the following.

 

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$B$2" Then
a = Sheets("Sheet2").Cells(Rows.Count, "A").End(xlUp).Row + 1
Sheets("Sheet2").Range("A" & a).Value = Sheets("Sheet1").Range("B2").Value
End If
End Sub

 

 

 

Highlighted

Thank you for the reply but it doesn't seem to do anything. I'll keep seeing what I'm doing wrong

Highlighted

Had to change a value and it's working. Thank you so much.

Now :)

I didn't want to look at too much of that code until I understand it however, is it now possible to have the same effect but instead of just changing one cell value it could do the same thing no matter what cell I change in column B?

 

assuming: If Target.Address = "$B$2" 

means column B cell2, could this be changed so that any cell in column B could do the same thing and not just column B cell 2?

Highlighted

Try this.

 

But after entering the value press enter, don't try downarrow / tab .

 

Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("B:B")) Is Nothing Then
a = Sheets("Sheet2").Cells(Rows.Count, "A").End(xlUp).Row + 1
ActiveCell.Offset(-1, 0).Activate
Sheets("Sheet2").Range("A" & a).Value = ActiveCell.Value
ActiveCell.Offset(1, 0).Select
End If
End Sub

 

Highlighted

That works great!

One question. Can I have it start at a particular cell?

It wants to start off by copying the headers I'm using and I need it to start at C4.

actually. After trying it, it seems to post the number above the cell I change.

So if C4= a value of 2 and I change that value, it copies value in C3 to the second worksheet.

so every cell I change on the first sheet copies the value from sheet 1 from the cell ABOVE the cell value I change.

does that make sense?

 

I think I got it...

Highlighted

hopr37 hotmail

 

1. This is answer for your first question.

 

Note: If you have any headers or any value in the range "C1,C2,C3", there is no problem. You can continue with the following. If not, put space in blank cells in C1,C2,C3.

 

Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("B:B")) Is Nothing Then
ActiveCell.Offset(-1, 0).Activate
a = Sheets("Sheet2").Cells(Rows.Count, "C").End(xlUp).Row + 1
Sheets("Sheet2").Range("C" & a).Value = ActiveCell.Value
ActiveCell.Offset(1, 0).Select
End If
End Sub

 

 

2. Just clarify the following.

a. So if you have value "2" in "Sheet2", this will result to bring above cell's value.

Eg. "Sheet2", "C6" value is 2, it will bring "C5" value.

"Sheet2", "C10" value is 2, it will bring "C9" value.

 

Right?

 

If this is not you want. Just explain me step by step. Put your questions one by one not in same paragraph. If you gave example, i will solve your question easily.

Highlighted

That works great. Thank you so much for your help!

Highlighted

Logaraj,

 

I have a similar problem as what you helped hopr37 with.  I have a worksheet that keeps track of labor.  When we take a new job, labor gets added to it, and when we complete portions of the labor, or ship a completed job, the labor comes off.  What I'd like to do is keep track of labor as it happens.  We run into a problem when we ship lets say a job that has 10 hours of labor on it, and then take on a job that has 10 hours of labor on it in the same day.  The number changes, but changes back to the original amount, so we don't know how efficient jobs are moving through production.  I'd like to record any increase changes to that number in one cell, and any decreases to that number in a different cell.  For a twist, I want those changes to change throughout the week, as long as TODAY()'s date is before a date I have listed in another cell.  Does this make sense?  I'd rather not post the worksheet to the forum, but will send it to you directly.

 

Thank you

Highlighted

@Logaraj Sekarthe VBA code works perfect IF the data is inputted by hand, but if the data is changed by reference to another cell or workbook i.e. A1= sheet6 C1 and C1 changes the A1 value then it does - unfortunately!!! - not work. Rescue please!?

Highlighted

@Logaraj Sekar 

 

Dear Logaraj_Sekar,

 

I have noticed that you have helped someone with a similar problem to mine. I have used your code successfully. However, I would also like to add "and" function in my statement.You can see what I have done below (it is not currently working):

 

Private Sub Worksheet_Change(ByVal Target As Range)

If "B1" = "EURO" And Target.Address = "$B$2" Then

a = Sheets("Sheet4").Cells(Rows.Count, "A").End(xlUp).Row + 1

Sheets("Sheet4").Range("A" & a).Value = Sheets("Sheet2").Range("B2").Value

Else

If "B1" = "USD" And Target.Address = "$B$2" Then

a = Sheets("Sheet4").Cells(Rows.Count, "B").End(xlUp).Row + 1

Sheets("Sheet4").Range("B" & a).Value = Sheets("Sheet2").Range("B2").Value

End If

End Sub

 

I would like to specify that if B1 contains the word "EURO" and the target address for the changing values is B2 from sheet 2, then I would like the values from B2 to be placed in column A in sheet 4, else if B1 contains the word "USD" and the target address for the changing values is B2 from sheet 2, I would like the values from B2 to be placed in column B in sheet 4.

 

Would you be able to help me with this issue?

 

Thank you

Highlighted

@natalib12 

 

Try this.

 

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$B$2" And Range("B1").value = "EURO" Then
a = Sheets("Sheet4").Cells(Rows.Count, "A").End(xlUp).Row + 1
Sheets("Sheet4").Range("A" & a).Value = Sheets("Sheet2").Range("B2").Value
Else
a = Sheets("Sheet4").Cells(Rows.Count, "B").End(xlUp).Row + 1
Sheets("Sheet4").Range("B" & a).Value = Sheets("Sheet2").Range("B2").Value
End If
End Sub

Highlighted

@Logaraj Sekar Hello , I see you helped many people , so I hope you can help me out as well...

I have a worksheet with products I got in offer listed on it, what I am trying to do now is when I type number of pcs in amount in sheet2 to automatically copy selected columns of that row to sheet1 on the list of offer and move selection on next row so I would need only to type amounts in sheet2 and then move to sheet1 where it would all be listed. 

What I need is if value of cell H3 - H98 in sheet1 is higher than 0 to do following:

- Copy range B3-B98 from sheet2 to range B15-B53 on sheet1

- Copy range H3-H98 on sheet2 to E15-E53 on sheet1 

- Copy range I3-I98 on sheet2 to F15-F53 on sheet1 

(So just those mentioned rows where column H is higher than 0 should be copied and after coping to move to cell below where it will copy second product with amount higher than 0 again without moving to sheet1 until its all done)

Is this possible to be done?

 

I appologize if I was not clear as English is not my first language , so if something is not clear please let me know... And thanks for your help in advance!

Highlighted

@Despot91 

 

Hi, Sorry now only i saw ur message.

 

If you already found solution, pls ignore this reply. If not, pls send sample worksheet.

Highlighted

@Logaraj Sekar 

Hello friend , thanks for your reply. No I have not found solution yet unfortunately
I deliver you file in attachment... There is some description writen in Serbian (it is basically what I wrote in message to you just shee1 and shee2 are renamed to otpremnica and ponuda) , I could translate it for you if needed when I get to PC , just let me know.

 

Thanks in advance for your help!

Highlighted

I still did not find a solution for problem mentioned above , if anyone can help it will be appreciated...

Highlighted

@Despot91,

 

I am working on it.

 

First, I've met trouble with your language.

 

Second, The worksheet contains 3 sheets : Ponuda, Otpremnica, Sheet1. But in question raised you have not mentioned sheets clearly. you have mentioned sheet1, sheet2. We don't understand which is sheet1 and which is sheet2.

 

So please give it clear or with example.

Highlighted
Highlighted

@Logaraj Sekar 

I appologize for sending it that way. I couldnt open file from my laptop because of older verison of excel so I sent on my language. And thank you for making a file. That is what I need, except in sheet otpremnica it should all go one below another and it also should copy price. 

 

I deliver you file with description in English.

This is what idea is:

When you insert quantity bigger than 0 , to automatically transfer to sheet "Otpremnica" name of article , quantity and price eur customer… (Price is not copied in file you sent)
More in detail:
When some row from column H > 0 ,so first positive number in that column (doesnt matter if that is H10 , H15 or...) to copy following:
(Example: h10 , h3, h15 we insert quantity exactly in that order):

1. Insert quantity to H10
- H10 sheet Ponuda to copy to E15 sheet Otpremnica ,
- B10 sheet Ponuda to copy to B15 sheet Otpremnica,
- I10 sheet Ponuda to copy to F15 sheet Otpremnica

2. Insert quantity to H3
- H3 sheet Ponuda to copy to E16 sheet Otpremnica ,
- B3 sheet Ponuda to copy to B16 sheet Otpremnica,
- I3 sheet Ponuda to copy to F16 sheet Otpremnica

3. Insert quantity to H15
- H15 sheet Ponuda to copy to E17 sheet Otpremnica ,
- B15 sheet Ponuda to copy to B17 sheet Otpremnica,
- I15 sheet Ponuda to copy to F17 sheet Otpremnica

^This to be applied for row 3 - row 1500 on sheet Ponuda

 

Please let me know if there still is something confusing. And once again thanks for help!