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

Add Worksheet::copy_range for Copy/Paste cells? #231

Closed
piaoger opened this issue Oct 5, 2024 · 3 comments
Closed

Add Worksheet::copy_range for Copy/Paste cells? #231

piaoger opened this issue Oct 5, 2024 · 3 comments

Comments

@piaoger
Copy link
Contributor

piaoger commented Oct 5, 2024

I'd like to copy a row and insert a couple of rows with same values as below lines:

        let mut sheet1 = book.get_sheet_mut(&1).unwrap();
        sheet1.insert_new_row(&9, &3);
        copy_range(&mut sheet1, "A8:L8", &1, &0);

My copy_range is similar to Worksheet::move_range but for Copy/Paste workflow.Can we add a Worksheet::copy_range as below?

fn move_or_copy_range(..., remove: bool)
pub fn move_range();
pub fn copy_range();
@MathNya
Copy link
Owner

MathNya commented Oct 7, 2024

@piaoger
Thank you for contacting us.
Yes, I would like to know if you have any questions. I think it is probably possible.
We will address this in the next update.

@piaoger
Copy link
Contributor Author

piaoger commented Oct 7, 2024

@piaoger Thank you for contacting us. Yes, I would like to know if you have any questions. I think it is probably possible. We will address this in the next update.

Thanks for you response.
If we start from a template. Copy/insert or Power fill handle(dragndrop corner) workflow can be very helpful.

piaoger pushed a commit to piaoger/umya-spreadsheet that referenced this issue Oct 10, 2024
MathNya pushed a commit that referenced this issue Oct 11, 2024
MathNya pushed a commit that referenced this issue Oct 11, 2024
@piaoger
Copy link
Contributor Author

piaoger commented Oct 16, 2024

I just had a test and it works fine. Thanks @MathNya

@piaoger piaoger closed this as completed Oct 16, 2024
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