Cloning worksheets at specific positions #1089
-
I see there is a warning (understandably) that the cloning function may not always work as expected. In my case, I want to replace a worksheet in a data template file with a revised worksheet:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I see that for my suggested option two, there is a way to write code to re-order the sheets using wb$set_order(). |
Beta Was this translation helpful? Give feedback.
Hi @Jeff-White-AZ ,
cloning is a nasty thing. So many things can go wrong and have to be taken care of. It has come a long way, but it was not a "walk in the park" to say the least and it definitely isn't perfect, hence the warning. It isn't likely that I'm going to tinker with it any time soon, therefore a custom function that does what you do seems like the best solution at hand.
Something like this: