D
Dave
Hey all,
I'm trying to turn a row of data into multiple rows, as
such:
a b c 1 2 3 ---> "a b c 1" and "a b c 2" and "a b c 3."
I need this to work such that if I click on row 1, it will
insert 3 rows, then do the appropriate fill, cut, and
paste. My first attempt with a macro didn't work - it was
a "hard" or "absolute" reference, so it would always do
the operations on the same row.
I tried modifying the code using "Selection.", but that
didn't work either, as I guess the selection changes each
time.
How can I move/operate relative to the cell that is
selected when the macro is run? I have found something
called Selection.Address, but I can't figure out how to
move around after that (i.e. softcode: select
Selection.Address, Selection.Address+2; fill down 5;
select Selection.Address+3; cut, paste Selection.Address
(+1, +3).
Thanks!
Dave
I'm trying to turn a row of data into multiple rows, as
such:
a b c 1 2 3 ---> "a b c 1" and "a b c 2" and "a b c 3."
I need this to work such that if I click on row 1, it will
insert 3 rows, then do the appropriate fill, cut, and
paste. My first attempt with a macro didn't work - it was
a "hard" or "absolute" reference, so it would always do
the operations on the same row.
I tried modifying the code using "Selection.", but that
didn't work either, as I guess the selection changes each
time.
How can I move/operate relative to the cell that is
selected when the macro is run? I have found something
called Selection.Address, but I can't figure out how to
move around after that (i.e. softcode: select
Selection.Address, Selection.Address+2; fill down 5;
select Selection.Address+3; cut, paste Selection.Address
(+1, +3).
Thanks!
Dave