Hi!
I hope so, I choose a good forum with: Excel genral/miscellaneous/programming.
My problem is: I want to copy n times, a range, for example range ("G1:H5") like this:
--A-B-C-D-E-F-G-H
1--------------------e--f
2--------------x-o--x-o
3-------c--r--c-r---c--r
4-------e-u--e-u---e-u
5-------l-m--l-m---l-m
Now, I'm using below code:
but after use this code, the data looks like that:![]()
Sub copysteps() For i = 1 To 2 ‘two copies, make change Selection.Resize(Selection.Rows.Count - 1).Copy ActiveCell.Offset(0, -2).Select ActiveSheet.Paste Next i End Sub
--A-B-C-D-E-F-G-H
1-------e--f--e--f--e--f
2-------x--o-x--o--x-o
3-------c--r--c--r--c--r
4--------------e--u-e--u
5---------------------l--m
Can you help me modify this code? Thanks.
Regards
Bookmarks