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)

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]orange[/TD]
[TD]orange[/TD]
[/TR]
[TR]
[TD]coconut[/TD]
[TD]green[/TD]
[/TR]
</tbody>[/TABLE]


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

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]A[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]orange[/TD]
[/TR]
[TR]
[TD]coconut[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

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

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
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,224,881
Messages
6,181,540
Members
453,054
Latest member
ezzat

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