copy paste made easy

Would appreciate an experts help to make this simpler

As you can see I am copying data from one sheet onto another. When it is copied I need to go to the last cell so that when I copy from the second sheet (C&A) the paste will be in the next blank cell in column A

Can an Expert please show me how to do this so that I am not going back an forth to sheets.


Sheets("Volume").Select
Range(Range("A2"), Cells.SpecialCells(xlCellTypeLastCell)).Copy
    Sheets("Consolidated").Range("A2").PasteSpecial xlPasteValues

Sheets("Consolidated").Select
    [A2].Select
    Selection.End(xlDown).Select
    ActiveCell.Offset(1, 0).Select

Sheets("C&A").Select
Range(Range("A2"), Cells.SpecialCells(xlCellTypeLastCell)).Copy
    Sheets("Consolidated").Range("??").PasteSpecial xlPasteValues

Sheets("Consolidated").Select
    [A2].Select
    Selection.End(xlDown).Select
    ActiveCell.Offset(1, 0).Select

Sheets("Turnover").Select
Range(Range("A2"), Cells.SpecialCells(xlCellTypeLastCell)).Copy
    Sheets("Consolidated").Range("??").PasteSpecial xlPasteValues

Sheets("Consolidated").Select
    [A2].Select
    Selection.End(xlDown).Select
    ActiveCell.Offset(1, 0).Select
JagwarmanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JagwarmanAuthor Commented:
Hi Rgonzo1971,

I am getting

'Application Defined or Object Defined Error'
0
JagwarmanAuthor Commented:
I get the error on this row

Sheets("Volume").Range(Range("A2"), Cells.SpecialCells(xlCellTypeLastCell)).Copy
0
Rgonzo1971Commented:
Hi,

pls try

Sub Macro()
Sheets("Volume").Range(Range("A2"), Cells.SpecialCells(xlCellTypeLastCell)).Copy
Sheets("Consolidated").Range("A" & Cells.Rows.Count).End(xlUp).Offset(1).PasteSpecial xlPasteValues

Sheets("C&A").Range(Range("A2"), Cells.SpecialCells(xlCellTypeLastCell)).Copy
Sheets("Consolidated").Range("A" & Cells.Rows.Count).End(xlUp).Offset(1).PasteSpecial xlPasteValues

Sheets("Turnover").Range(Range("A2"), Cells.SpecialCells(xlCellTypeLastCell)).Copy
Sheets("Consolidated").Range("A" & Cells.Rows.Count).End(xlUp).Offset(1).PasteSpecial xlPasteValues


End Sub

Open in new window

Regards
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Rgonzo1971Commented:
pls try to close the file and reopen it or send a dummy
0
JagwarmanAuthor Commented:
dummy file attached

thanks
CopySheets.xlsm
0
Rgonzo1971Commented:
Hi,

pls try

Sub CONSOLIDATED()

Set sh1 = Sheets("Consolidated")
sh1.Range(Range("A2"), sh1.Cells.SpecialCells(xlCellTypeLastCell)).ClearContents
Set sh = Sheets("Volume")
Range(sh.Range("A2"), sh.Cells.SpecialCells(xlCellTypeLastCell)).Copy
sh1.Range("A" & Cells.Rows.Count).End(xlUp).Offset(1).PasteSpecial xlPasteValues
Set sh = Sheets("C&A")
Range(sh.Range("A2"), sh.Cells.SpecialCells(xlCellTypeLastCell)).Copy
sh1.Range("A" & Cells.Rows.Count).End(xlUp).Offset(1).PasteSpecial xlPasteValues
Set sh = Sheets("Turnover")
Range(sh.Range("A2"), sh.Cells.SpecialCells(xlCellTypeLastCell)).Copy
sh1.Range("A" & Cells.Rows.Count).End(xlUp).Offset(1).PasteSpecial xlPasteValues

End Sub

Open in new window

EDIT corrected code

Regards
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
JagwarmanAuthor Commented:
Thanks Rgonzo perfect.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.