Copy values to another worksheet

  • Thread starter Thread starter juniper622
  • Start date Start date
J

juniper622

Is there a way to select several non-adjacent cells and the copy th
values to the next available row in another worksheet automatically
with a macro perhaps? I can't seem to be able to find a way to impor
to the next available empty row
 
You can probably do that with a macro, but you are too skimpy
on the details. In order to write code you have to know exactly
what you are working with. As far as the next available row
according to content in column A the following code will illustrate
what you can use. Of course you try to avoid actually selecting
a cell within a
macro.

for column A
Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).Select

for the column of the active cell
Cells(Rows.Count, ActiveCell.Column).End(xlUp).Offset(1, 0).Select

--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top