Skip to content

Commit

Permalink
Adding example how to export only specific worksheets
Browse files Browse the repository at this point in the history
  • Loading branch information
simonfranzen committed Jan 31, 2019
1 parent c813ce9 commit 015e886
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,26 @@ This script will help you to extract Worksheets from an Excel file. It already s

## Run the example

Clone this repository and try to run the example

Clone this repository and try to run the example file. The file has 3 worksheets: `Worksheet 1`, `Another data set` and `Last`
1. `git clone [email protected]:zauberware/excel-worksheets-to-csv.git && cd excel-worksheets-to-csv`
2. `python worksheet_to_csv.py example.xlsx`
3. See results under `exports/`

Now you should see `Worksheet 1.csv`, `Another data set.csv` and `Last.csv` in the exports folder.


## Export all Worksheets

To export all worksheets to CSV run `python worksheet_to_csv.py example.xlsx` like in the example.


## Export specific Worksheets

To export only specific worksheets you can specify them comma seperated as the second argument of the script.

**Example: Export only `Worksheet 1` and `Last`:**

`python worksheet_to_csv.py example.xlsx "Worksheet 1,Last"`


## Prerequisites
Expand Down
Binary file modified example.xlsx
Binary file not shown.

0 comments on commit 015e886

Please sign in to comment.