Hey all,
I have a code that I am trying to expand to a range of about 20 rows by 2 columns. I would like for the macro to loop (?) through the entire range and offset each cells of the range 10 columns right, & 100 rows down.
Any thoughts/opinions let me know!
I have a code that I am trying to expand to a range of about 20 rows by 2 columns. I would like for the macro to loop (?) through the entire range and offset each cells of the range 10 columns right, & 100 rows down.
Code:
Public Sub lmtpastespecial()
ActiveSheet.range("a4:b4").Copy
range("h4").PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:= _
xlNone, SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False
ActiveSheet.range("c4:d4").Copy
range("l4").PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:= _
xlNone, SkipBlanks:=False, Transpose:=False
ActiveSheet.range("f4:n4").Insert _
shift:=xlDown
range("n5").FormulaR1C1 = "=RC[-5]/RC[-1]"
NumberFormat = "0.0000"
ActiveSheet.range("f55:n55").ClearContents
End Sub
Any thoughts/opinions let me know!