M
Marin Vukovic
Hello to the group, this is the first time I'm here and I'm getting a
little desperate looking for a solution. I hope I'll find someone who
can help me with this. Anyone who helps me has a virtual beer from me,
cause this is rather urgent and I don't know how to do it.
Okay, here's the deal. I'm using Excel 2000. I have a worksheet which is
used to enter different kinds of data (no kidding). When it's all
entered, it creates a row of 5 cells which needs to be copied to another
worksheet in another file for tracking purposes. Furthermore, it needs
to be done for numerous such rows and then they're copied one after
another in that other file. Now, I know I could do it manually and just
use copy/paste, but I have to try to make it do that automatically.
I was thinking I could use VBA and macros. I know how to record a macro
and make a button which will copy and paste that row in another
worksheet. What I don't know is how to force it to skip the rows which
have data in them and paste the next row UNDER the existing data. For
instance...
The row looks like this, very simple:
cell1 cell2 cell3 cell4 cell5
Now let's imagine that I already have the first row copied in that other
worksheet, like here:
A B C D E
1 cell1 cell2 cell3 cell4 cell5
2
3
When I press the button which triggers the macro, how do I make Excel to
skip row 1 and automatically paste the new data in row 2, under the
existing data? How do I automatically get this:
A B C D E
1 cell1 cell2 cell3 cell4 cell5
2 cell1 cell2 cell3 cell4 cell5
And so on and so on... the next one would paste in row 3, then row 4
etc. Is it possible to do that with macros or any function in Excel? How
do I make Excel look for the next empty row and paste data there?
Thanks in advance, I would appreciate any help, even if it's just "nope,
can't be done"! I hope I made it clear enough and it's easy to
understand what I need.
Marin
little desperate looking for a solution. I hope I'll find someone who
can help me with this. Anyone who helps me has a virtual beer from me,
cause this is rather urgent and I don't know how to do it.
Okay, here's the deal. I'm using Excel 2000. I have a worksheet which is
used to enter different kinds of data (no kidding). When it's all
entered, it creates a row of 5 cells which needs to be copied to another
worksheet in another file for tracking purposes. Furthermore, it needs
to be done for numerous such rows and then they're copied one after
another in that other file. Now, I know I could do it manually and just
use copy/paste, but I have to try to make it do that automatically.
I was thinking I could use VBA and macros. I know how to record a macro
and make a button which will copy and paste that row in another
worksheet. What I don't know is how to force it to skip the rows which
have data in them and paste the next row UNDER the existing data. For
instance...
The row looks like this, very simple:
cell1 cell2 cell3 cell4 cell5
Now let's imagine that I already have the first row copied in that other
worksheet, like here:
A B C D E
1 cell1 cell2 cell3 cell4 cell5
2
3
When I press the button which triggers the macro, how do I make Excel to
skip row 1 and automatically paste the new data in row 2, under the
existing data? How do I automatically get this:
A B C D E
1 cell1 cell2 cell3 cell4 cell5
2 cell1 cell2 cell3 cell4 cell5
And so on and so on... the next one would paste in row 3, then row 4
etc. Is it possible to do that with macros or any function in Excel? How
do I make Excel look for the next empty row and paste data there?
Thanks in advance, I would appreciate any help, even if it's just "nope,
can't be done"! I hope I made it clear enough and it's easy to
understand what I need.
Marin