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

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.

Forum statistics

Threads
1,214,982
Messages
6,122,581
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