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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
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,999
Messages
6,122,645
Members
449,093
Latest member
Ahmad123098

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