Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Copying by Column "Header Name" macro


Hi. Does anyone know the VB code for:
Looking for a column header name, and then copying that column into a
separate worksheet.

i.e. On Sheet 1 -
look for column headers called "Part No", "Qty", "Description" and
"Cost". Then copy to Sheet 2 -
"Description", "Cost", "Qty" and "Part No"

You may ask why? I get various spreadsheets in different column
arrangements with more heading than described but the header names I
look for are always the same. This way I can "look" for a header name
and copy it into the correct order on another worksheet and use it
rather than manually search.

Any help would be much appreciated.

Adam


--
akane


------------------------------------------------------------------------
akane's Profile: http://www.excelforum.com/member.php...fo&userid=4273
View this thread: http://www.excelforum.com/showthread...hreadid=547253

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Copying by Column "Header Name" macro


Hi I googled this and found this you should be able to adapt it!

regards
Simon
http://www.rondebruin.nl/copy5.htm


--
Simon Lloyd
------------------------------------------------------------------------
Simon Lloyd's Profile: http://www.excelforum.com/member.php...fo&userid=6708
View this thread: http://www.excelforum.com/showthread...hreadid=547253

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Copying by Column "Header Name" macro


Hi Simon,

I can't decipher Ron's page. His one seems to create new sheets and
names the new worksheets accordingly.

Do you know any other methods (I'm not a VB guru either).

So just to clarify, when looking in a spreadsheet, I'm looking for a
couple of column header names, and then copying those columns only (in
a predefined order) into a clean separate worksheet.

i.e. On Sheet 1 -
Out of 30 column headers (with data underneath), look for column
headers called "Part No", "Qty", "Description" and "Cost". Then copy to
Sheet 2 -
"Description", "Cost", "Qty" and "Part No"

Thanks again.

Adam


--
akane


------------------------------------------------------------------------
akane's Profile: http://www.excelforum.com/member.php...fo&userid=4273
View this thread: http://www.excelforum.com/showthread...hreadid=547253

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Copying by Column "Header Name" macro


Ever find a solution to this?


--
drdavidge
------------------------------------------------------------------------
drdavidge's Profile: http://www.excelforum.com/member.php...o&userid=36168
View this thread: http://www.excelforum.com/showthread...hreadid=547253

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to find copy "header" and paste RunsWithKnives Excel Discussion (Misc queries) 3 March 27th 06 05:55 AM
Please add a "sheet" function like "row" and "column" functions Spreadsheet Monkey Excel Programming 2 November 8th 05 04:08 PM
Attribute in "hidden" header of macro: MyMacro.VB_ProcData.VB_Invoke_Func [email protected] Excel Programming 1 August 15th 05 04:53 PM
How do I split "A1B2" into "A1" and "B2" using text to column fun. Jennifer Excel Programming 1 February 2nd 05 10:01 PM
stuck on final prat of spreadsheet "macro copying cells" alan_bourne[_18_] Excel Programming 4 November 17th 03 09:32 PM


All times are GMT +1. The time now is 01:02 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"