Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Split a CSV file based on fields

Status
Not open for further replies.

njseadooer

IS-IT--Management
Jan 24, 2008
1
US
I'm wondering if someone could help me since I am very new to VB and have never done anything like this before.

I have a CSV file eg
File:AllUsers.csv
Name,Department
"Tom","4000"
"Craig","5000"
I need a script to create a file for each department which includes the user eg.
File:dept4000.csv
"Tom","4000"

File:dept5000.csv
"Craig","5000"

Thanks for any help you can offer!
Craig
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top