Copy 1 column from sheet 2 to sheet 1 using macro code

roipatrick

New Member
Joined
Mar 20, 2014
Messages
39
I want to copy 1 column let's say column A from sheet 2 (which has 900 data(data count varies) to column A in sheet 1 starting in A3(for sample).

Sample(Sheet 2)

AB
orangeorange
coconutgreen

<tbody>
</tbody>


Copy column A from sheet 2 (above) to this sheet (sheet 1) starting in A3

A
orange
coconut

<tbody>
</tbody>

I need a sampl macro which can do that. Sometimes Sheet2 data may have at least a thousand data which needed to be copied frm sheet 2 to sheet 1 startiing in A3.
Sorry but I'm stll new to VBA and this is just a part of my studying habit in VBA :D

Thanks for helping
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Sub Macro1()


Sheets("Sheet2").Select
Range("A1:A10000").Select
Selection.Copy
Sheets("Sheet1").Select
Range("A3").Select
ActiveSheet.Paste
End Sub
 
Upvote 0
This would work.

Code:
Worksheets("Sheet2").UsedRange.Columns("A").Copy Destination:=Worksheets("Sheet1").Range("A3")
 
Upvote 0

Forum statistics

Threads
1,214,839
Messages
6,121,892
Members
449,058
Latest member
Guy Boot

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