Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I want to select a given range and copy that range to 4 places:
Lets say I select a1 to e8 I want the macro to copy the selected information 4 times as follows: to a9:e16 a17:e24 a25: e32 F1:J8 In other words. Copy the selected data three times just below the selected data and once to the right of the selected data. Most appreciated and Merry Xmas to all Ian M |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This macro assume that the column right to the selection is empty, the
same goes for the rows below the selection: Sub CopyRng() Dim TargetRng As Range Set TargetRng = Selection TargetRng.Copy TargetRng.End(xlToRight).Offset(0, 1) For r = 1 To 3 TargetRng.Copy TargetRng(1, 1).End(xlDown).Offset(1) Next End Sub Regards, Per On 22 Dec., 16:14, pcor wrote: I want to select a given range and copy that range to 4 places: Lets say I select a1 to e8 I want the macro to copy the selected information * 4 times as follows: to a9:e16 a17:e24 a25: e32 F1:J8 In other words. Copy the selected data three times just below the selected data and once to the right of the selected data. Most appreciated and Merry Xmas to all Ian M |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Which is faster, copying range to another set of ranges or copying tomemory? | Excel Programming | |||
Copying Range Based On Certain Criteria? Possible looping through the Range | Excel Programming | |||
Copying a range to a new tab | Excel Programming | |||
copying dynamic range based on cell outside of range | Excel Programming | |||
Searching a range and copying values into a new range.... **Please help** :( | Excel Programming |