Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pchemguy/csvparser
Parses delimited files (CSV) using pure VBA or Excel assisted VBA.
https://github.com/pchemguy/csvparser
csv-import csv-parser vba vba-excel
Last synced: 6 days ago
JSON representation
Parses delimited files (CSV) using pure VBA or Excel assisted VBA.
- Host: GitHub
- URL: https://github.com/pchemguy/csvparser
- Owner: pchemguy
- Created: 2021-03-06T21:47:08.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-05-02T18:51:52.000Z (over 3 years ago)
- Last Synced: 2024-02-29T08:45:22.410Z (10 months ago)
- Topics: csv-import, csv-parser, vba, vba-excel
- Language: VBA
- Homepage:
- Size: 503 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Excel VBA provides several functionalities for parsing text delimited files:
- basic file I/O and the Split function (basic parser);
- Workbook.Open/Workbook.OpenText functions;
- Excel's QueryTable.CSVParser implements the first two options. The basic parser is less flexible but at least 20x faster than Workbook.Open/Workbook.OpenText. Excel parser (Workbook.Open/Workbook.OpenText) ignores parsing options if the file has a ".csv" extension. So to ensure correct parsing of a ".csv" file, it is temporarily renamed, parsed, and renamed back.
"Project/Common/CSV Parser/CSVParser.cls" contains the CSVParser class. "Project/Common/CSV Parser/CSVParserSnippets.bas" and "Project/Common/CSV Parser/CSVParserTests.bas" modules contain usage examples and tests. The repository root also contains two test files "Contacts.xsv" and "Contacts.csv" with identical content.