Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API for matching sheet names to sheet paths #105

Closed
MaxDesiatov opened this issue Apr 11, 2020 · 0 comments · Fixed by #109
Closed

API for matching sheet names to sheet paths #105

MaxDesiatov opened this issue Apr 11, 2020 · 0 comments · Fixed by #109
Labels
documentation Documentation improvements enhancement New feature or request

Comments

@MaxDesiatov
Copy link
Collaborator

Hi @duodo2412, the value of the cell B14 in this case is not "", it's essentially nil, because the cell itself is absent in the .xlsx file in this case. If you'd like to verify that, you can specify the exact cell:

let cell = worksheet.cells(atColumns: [ColumnReference("B")!], rows: [4])

My undertstanding is that this will return an empty array [] in your case. Does that resolve your issue?

Tks for the your answer .
Can i ask you another question.
Screen Shot 2020-04-11 at 14 32 09
I have a lot of sheets in xlsx file.
My code:
let sheets: [String] = try file.parseWorksheetPaths() and print result

  • After that i change the order of sheet in file and execute my code again. Result is the same before i change the order of sheet .
    How can i know exactly the sheet i want to get ( may be i can query with name of sheet ) . Can you help me?
    Tks

Originally posted by @duodo2412 in #21 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Documentation improvements enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant