Copy Data From Column B and paste in Column A

Chandresh

Board Regular
Joined
Jul 21, 2009
Messages
146
HI All,

Need help in a macro which will copy all the data from column B and paste after the last row in column A.

I have the following data :
Cloumn ACloumn B
ABC100
ZYZ200
300
HGF

<colgroup><col width="64" style="width:48pt" span="2"> </colgroup><tbody>
</tbody>

macro should copy data from column B and paste below column A.

Below is the manual out put

Cloumn ACloumn B
ABC100
ZYZ200
300
HGF
100
200
300

<colgroup><col width="64" style="width:48pt" span="2"> </colgroup><tbody>
</tbody>

thanks
Chandresh
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Try this:
Code:
Sub Copy_Data()
'Modified 9/3/2018 3:22 AM  EDT
Application.ScreenUpdating = False
Dim Lastrow As Long
Lastrow = Cells(Rows.Count, "A").End(xlUp).Row + 1
Dim Lastrowb As Long
Lastrowb = Cells(Rows.Count, "B").End(xlUp).Row
Cells(1, 2).Resize(Lastrowb).Copy Cells(Lastrow, 1)
Application.ScreenUpdating = True
End Sub
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,026
Messages
6,122,743
Members
449,094
Latest member
dsharae57

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