How do I copy and paste data from a specific worksheet into new one.

ghrek

Active Member
Joined
Jul 29, 2005
Messages
426
I have a workbook that has a brand new sheet that is named but blank.

Is there anyway via macro that I can copy and paste all the data from the previous sheet in the range A10:AC1330 onto the new sheet.
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
You can try something like this assuming your sheets are titled "Sheet1" and "Sheet2" respectively.

VBA Code:
Sub TestOut()
Sheets("Sheet1").Range("A10:AC1330").Copy

Sheets("Sheet2").Range("A1").PasteSpecial xlPasteValues

End Sub
 
Upvote 0
They will not be named sheet 1 etc but will be 2301 / 2302 3,4,5. Etc
In that case just change the values as such:

VBA Code:
Sub TestOut()
Sheets("2301").Range("A10:AC1330").Copy

Sheets("2302").Range("A1").PasteSpecial xlPasteValues

End Sub

Maybe an alternative would be to give the sheet with the source data and the sheet where the data will be copied into specific names. Would that work?
 
Upvote 0

Forum statistics

Threads
1,214,907
Messages
6,122,183
Members
449,071
Latest member
cdnMech

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top