copy sheet1 to sheet2

Ks1102

Well-known Member
Joined
Jan 8, 2008
Messages
689
Hi, experts

Can u help me again to have code for copy and paste from sheet1 which just only column B2, C2, G2, H2 down to last row then paste at sheet2 column A ??

Sample:
Sheet2 COL A = Sheet1 COL B
Sheet2 COL B = Sheet1 COL C
Sheet2 COL B = Sheet1 COL G
Sheet2 COL D = Sheet1 COL H

Thank ^.^
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Try this.
Code:
Sub CCC()
    With Sheets("Sheet1")
        .Columns("B:B").Copy Sheets("Sheet2").Range("A1")
        .Columns("C:C").Copy Sheets("Sheet2").Range("B1")
        .Columns("G:G").Copy Sheets("Sheet2").Range("C1")
        .Columns("H:H").Copy Sheets("Sheet2").Range("D1")
    End With
End Sub
 
Upvote 0
Try this.
Code:
Sub CCC()
    With Sheets("Sheet1")
        .Columns("B:B").Copy Sheets("Sheet2").Range("A1")
        .Columns("C:C").Copy Sheets("Sheet2").Range("B1")
        .Columns("G:G").Copy Sheets("Sheet2").Range("C1")
        .Columns("H:H").Copy Sheets("Sheet2").Range("D1")
    End With
End Sub

Thanks VV
 
Upvote 0

Forum statistics

Threads
1,224,532
Messages
6,179,388
Members
452,908
Latest member
MTDelphis

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