Range reference to easily use some feature (#504)#506
Open
sato-s wants to merge 2 commits into
Open
Conversation
Contributor
Author
|
CI failed because nokogiri no longer support ruby 1.9 ruby < 2.1 are EOL. |
Owner
|
Hi @sato-s - How do you feel about just returning 'A1' for the top_left helper method? |
Contributor
Author
|
@randym |
This patch introduce following methods to easily use auto_filter, table, etc. - Worksheet#top_left_reference - Worksheet#bottom_right_reference - Worksheet#range_reference
Contributor
Author
|
@randym |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When we want to use auto_filter or table etc, we have to manually calculate range of auto_filter or table.
For instance,
In the above example, users have to calculate 'A1:D4' before applying auto_filter.
This is cumbersome and tend to error, especially when you deal with dynamic length data.
With this fix, all you have to do is ....
I also made Worksheet#bottom_right_reference.
This is useful when you want to apply auto_filter from the row other than 1st row.