stephenj789
Technical User
I have a simple macro that moves to the first empty cell at the end of a column, then is supposed to paste the selection to it.
Employee #
012
013
014
015
(Empty Space)
What I would like the macro to do is move to the empty space and paste a new set of employee numbers. The output would look like this:
Employee #
012
013
014
015
016
017
018
Here is the macro I am trying to get to work (A range of employee numbers will already selected when this macro is initiated):
Selection.End(xlDown).Select
ActiveCell.Offset(1, 0).Select
ActiveSheet.Paste
However, when I run the macro, I lose the selection and nothing pastes (although the correct cell is activated). I think this is because I am using "Select" in my commands (which kills any previous selections). Does anybody know of a way I can move to the first empty cell in a column and paste a selection?
Employee #
012
013
014
015
(Empty Space)
What I would like the macro to do is move to the empty space and paste a new set of employee numbers. The output would look like this:
Employee #
012
013
014
015
016
017
018
Here is the macro I am trying to get to work (A range of employee numbers will already selected when this macro is initiated):
Selection.End(xlDown).Select
ActiveCell.Offset(1, 0).Select
ActiveSheet.Paste
However, when I run the macro, I lose the selection and nothing pastes (although the correct cell is activated). I think this is because I am using "Select" in my commands (which kills any previous selections). Does anybody know of a way I can move to the first empty cell in a column and paste a selection?