Hi. I previously got help with a code. I modified it to use it several times, about 10 times. The question is:
1. Instead of pasting the code for every single operation and run it, i want to paste them all and run. The code is two ex:
Sub test()
Dim rng As Range, i As Long
i = 3
For Each rng In Sheets("Ark1").Range("A3:A" & Sheets("Ark1").Range("A" & Rows.Count).End(xlUp).Row)
rng.Copy Sheets("Ark2").Range("A" & i)
i = i + 50
Next
End Sub
Sub test()
Dim rng As Range, i As Long
i = 3
For Each rng In Sheets("Ark1").Range("A3:A" & Sheets("Ark1").Range("A" & Rows.Count).End(xlUp).Row)
rng.Copy Sheets("Ark2").Range("B" & i)
i = i + 50
Next
End Sub
Thanks!
1. Instead of pasting the code for every single operation and run it, i want to paste them all and run. The code is two ex:
Sub test()
Dim rng As Range, i As Long
i = 3
For Each rng In Sheets("Ark1").Range("A3:A" & Sheets("Ark1").Range("A" & Rows.Count).End(xlUp).Row)
rng.Copy Sheets("Ark2").Range("A" & i)
i = i + 50
Next
End Sub
Sub test()
Dim rng As Range, i As Long
i = 3
For Each rng In Sheets("Ark1").Range("A3:A" & Sheets("Ark1").Range("A" & Rows.Count).End(xlUp).Row)
rng.Copy Sheets("Ark2").Range("B" & i)
i = i + 50
Next
End Sub
Thanks!