Excel Macro to Copy the higligted cell value header only with the primary key

gregorydube

New Member
Joined
Aug 11, 2014
Messages
1
Hi All,

Greetings,

I'm looking for a excel vba macro where it will copy all the highligted cell value heade and paste the same in different sheet for example

all the row one has header

B5, G5, AA5, BG5 columns are the issue and these cells are highlighted so i want

A5 cells which is primary key, to be copied followed by the headers which are in row 1 for those (b1,G1,AA1,BG1)

kinldy help data size can be exced 150 columns and row can go upto 3 lacs'

thanks
Gregory
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Forum statistics

Threads
1,214,788
Messages
6,121,577
Members
449,039
Latest member
Arbind kumar

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