Hi ALL,
I am having difficulty wtih an if statement going about 100 rows paste the final row, it seems each time i run the macro it goes further paste the last. Which makes me feel like I have a double of something, any help would be great, below is he current code.
code:
FinalRow = Cells(Rows.Count, "C").End(xlUp).Row
Range("I2:I2" & FinalRow).Formula = "=if(J2>0,""40"",""50"")"
Range("I2").Copy Destination:=Range("I2" & FinalRow)
Range("I2").Select
Range(ActiveCell, ActiveCell.End(xlDown)).Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues
Application.CutCopyMode = False
I am having difficulty wtih an if statement going about 100 rows paste the final row, it seems each time i run the macro it goes further paste the last. Which makes me feel like I have a double of something, any help would be great, below is he current code.
code:
FinalRow = Cells(Rows.Count, "C").End(xlUp).Row
Range("I2:I2" & FinalRow).Formula = "=if(J2>0,""40"",""50"")"
Range("I2").Copy Destination:=Range("I2" & FinalRow)
Range("I2").Select
Range(ActiveCell, ActiveCell.End(xlDown)).Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues
Application.CutCopyMode = False