I am using Windows 7, and Excel 2010
I regularly need to take some CMM data that comes out of our system and then only copy the characteristics that we need to analyze
I copy the data to the spreadsheet onto a sheet called "EDIT DATA" starting at B1.
I then my macro I created using the macro recorder.
The macro copies the name of the column headings that are listed on Column A one at a time and using the find command, looks for that column. It then then cuts the whole column of data and pastes in in the correct order onto the next sheet.
Column A in sheet EDIT DATA is the list of characteristics I want to find and it is in the proper order.
The issue is when importing the data, it is often in a different order, and not always in the same columns when I download it from the system.
So when I run the macro, it cuts and pastes the wrong columns. So even though I use the find command, the macro just cuts the same column each time it is run.
Primary Goal:
1) To always find these named columns no matter where they are in the data.
Secondary Goal:
To make the macro work with minor editing in other spread sheets with different quantity and different names in column A.
Example being, replacing column A with these names:
I have posted in Box.net an example file in the link below and it includes more detail on my issue.
https://app.box.com/s/jy98x0xl05ofy27uxwdksts73lwjatwl
I regularly need to take some CMM data that comes out of our system and then only copy the characteristics that we need to analyze
I copy the data to the spreadsheet onto a sheet called "EDIT DATA" starting at B1.
I then my macro I created using the macro recorder.
The macro copies the name of the column headings that are listed on Column A one at a time and using the find command, looks for that column. It then then cuts the whole column of data and pastes in in the correct order onto the next sheet.
Column A in sheet EDIT DATA is the list of characteristics I want to find and it is in the proper order.
The issue is when importing the data, it is often in a different order, and not always in the same columns when I download it from the system.
So when I run the macro, it cuts and pastes the wrong columns. So even though I use the find command, the macro just cuts the same column each time it is run.
Primary Goal:
1) To always find these named columns no matter where they are in the data.
Secondary Goal:
To make the macro work with minor editing in other spread sheets with different quantity and different names in column A.
Example being, replacing column A with these names:
I have posted in Box.net an example file in the link below and it includes more detail on my issue.
https://app.box.com/s/jy98x0xl05ofy27uxwdksts73lwjatwl