Macro to create new workbook and copy data

swetha_tarun

New Member
Joined
Jul 20, 2017
Messages
1
Hi,
I am looking for macro to copy rows based on partial cell content of a column. I have an excel spreadsheet called "arc.xlsx" from which I would like to copy data to other few new excel files when certain criteria are met. The excel file contained location is C:\Documents and Settings\xxxx\Desktop\Company.


Below is the sample data from the excel file, where I need to create a file based on the Column C (Line) data, The macro should divide the rows based on column C and create new file with the unique name, save it in specified folder. Heading should be retained for all the files created.

Am only a beginner in Excel so please help me out to learn more with this file as needed.

Sample Data:

OperationPlanLineLocation #Location beginLocation endBranchUnitState Data#TypeNameBegin DateEnd Date
A11112/18/198906/30/20001NONENone12/18/198912/31/1989
A11212/18/198906/30/20001NONENone12/18/198912/31/1989
A11312/18/198906/30/20001NONENone12/18/198912/31/1989
A12112/18/198906/30/20002NONENone########12/31/1990
A12212/18/198906/30/20002NONENone########12/31/1990
A12312/18/198906/30/20002NONENone########12/31/1990
A12412/18/198906/30/20002NONENone########12/31/1990
A12512/18/198906/30/20002NONENone########12/31/1990
A13112/18/198906/30/20003NONENone########12/31/1991

<colgroup><col span="4"><col><col><col span="9"></colgroup><tbody>
</tbody>
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

Forum statistics

Threads
1,214,991
Messages
6,122,628
Members
449,095
Latest member
bsb1122

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