Macro to copy data from certain columns

howard

Well-known Member
Joined
Jun 26, 2006
Messages
6,534
Office Version
  1. 2021
Platform
  1. Windows
I would like VBA code to copy the following columns from one workbook and to paste them into specified columns. The data in the destination workbook must be copied below the last data that appears in thiscworkbook. for eg if theere is data in A40, it must be copied to A41

Source Work book

1) Col A from row 5 onwards, ** followed by tesxt as well as text "Report by*.*" to be ignored when copying data -this must be copied in the destination workbook in Col C in the row after the last data
2) Col N from row 5 onwards -this must be copied in the destination workbook in Col I in the row after the last data
3) Col M from row 5 onwards -this must be copied in the destination workbook in Col K in the row after the last data
4) Col H from row 5 onwards -this must be copied in the destination workbook in Col L in the row after the last data

Your assistance in this regard is most appreciated
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

Forum statistics

Threads
1,206,760
Messages
6,074,779
Members
446,087
Latest member
PinkFloyd

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