Macro To Copy Specific Columns from Excel with Pictures using Column Names

Neonovaz

New Member
Joined
Jul 24, 2019
Messages
2
Hello All

Problem:
The Excel I have has some pictures embeded at start (A1:H10) which can vary in different templates

below this there is header, below which is a table (headers for column names start from A12)

Since column number can change , I need a way to extract whatever data is there under column using column names.

The Table may not always be present from A12, therefore I need a solution where no matter where the columns are located in the worksheet it can be extracted

Sample Columns names :

<colgroup><col width="200"><col width="126"></colgroup><tbody>
Client Name Client Code (DDS)Client Code
Brand Name
Brand Code

<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>
</tbody>


Please advise
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Also the extracted columns with their data should be written into a new workboox.xlsx starting from A1 with thier headers
 
Upvote 0

Forum statistics

Threads
1,214,983
Messages
6,122,582
Members
449,089
Latest member
Motoracer88

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