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

sheet.getRows() limit column #667

Open
quarkhadron opened this issue Nov 17, 2023 · 4 comments
Open

sheet.getRows() limit column #667

quarkhadron opened this issue Nov 17, 2023 · 4 comments

Comments

@quarkhadron
Copy link

Is it possible to limit the column when getting roles?

I've been checking the docs and could not find any way to limit the columns, only able to limit the rows

@theoephraim
Copy link
Owner

That's not currently an option, although it wouldn't be too hard to add an option to sheet.loadHeaderRow()

@quarkhadron
Copy link
Author

Currently, the sheet I'm accessing is read-only and it has duplicated header rows so I wanted to limit the column it would read

@quarkhadron
Copy link
Author

@theoephraim Sir?

@theoephraim
Copy link
Owner

My first suggestion would be to just update the sheet... Or ask whoever has access to edit the sheet to do so.
Otherwise, you could use the cell-based methods to read the cells, although it's not quite as easy.

Or you can fork the repo and add the functionality (and open a PR hopefully)

I'll certainly try to add it when I can, but I can't make any promises on when that would be. Given this is the first request for this functionality in over 10 years of this tool existing, I don't think it's a very common need.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants