Hi,
I have written a simple macro that copies multiple ranges and then pastes
them into the active cell. The problem is that the ranges are automatically
merged, while I would like them to keep their original postition in relation
to each other.
Example:
A B C D E F G
1 2 5
2 3 5
3
4 2 3
5 1 9
In this example I want to copy the two ranges A1:B2 and A4:B9, and paste
them into my active cell which here would be F2, using this simple code:
Range("A1:B2, A4:B9").Copy
ActiveCell.Paste
This is what I get:
A B C D E F G
1 2 5 2 5
2 3 5 3 5
3 2 3
4 2 3 1 9
5 1 9
This is what I want:
A B C D E F G
1 2 5 2 5
2 3 5 3 5
3
4 2 3 2 3
5 1 9 1 9
Does anyone know how to avoid the merging of the ranges?
Any help would be greatly appreciated. The problem is small. The
implications are big...
Regards
Stian
Bookmarks