hi all,
I have two named ranges called 'sRange' and 'dRange'.
I've set sRange = Columns("F:F"
I've set dRange = Range("G:G"
The macro i wrote is supposed to copy what's in
sRange (F:F) and paste it to dRange (G:G).
However, if the dRange has any data in any of its cells,
the macro is to select dRange (Range "G:G"
and insert a new column thereby shifting to the right
any data that was in Range "G:G" to Range "H:H"
and leaving Range "G:G" (dRange) empty.
Simple enough. However, the thing is that when I go
to paste the info from sRange (Columns "F:F"
to
dRange (Range "G:G"
, the data gets pasted to
Range "H:H"! It turns out that Range "H:H" has
somehow become the 'dRange'. How this happen? It's
like my original named range disappeared.
I need for dRange to remain Range ("G:G"
.
Is there a way to prevent this? I there a way around
it? Is there a different naming convention I must use?
Any help greatly appreciated. Thanks! Peace!
Thank
You
Have
A
Nice
Day
I have two named ranges called 'sRange' and 'dRange'.
I've set sRange = Columns("F:F"
I've set dRange = Range("G:G"
The macro i wrote is supposed to copy what's in
sRange (F:F) and paste it to dRange (G:G).
However, if the dRange has any data in any of its cells,
the macro is to select dRange (Range "G:G"
and insert a new column thereby shifting to the right
any data that was in Range "G:G" to Range "H:H"
and leaving Range "G:G" (dRange) empty.
Simple enough. However, the thing is that when I go
to paste the info from sRange (Columns "F:F"
dRange (Range "G:G"
Range "H:H"! It turns out that Range "H:H" has
somehow become the 'dRange'. How this happen? It's
like my original named range disappeared.
I need for dRange to remain Range ("G:G"
Is there a way to prevent this? I there a way around
it? Is there a different naming convention I must use?
Any help greatly appreciated. Thanks! Peace!
Thank
You
Have
A
Nice
Day