Quantcast
Channel: ClosedXML - The easy way to OpenXML
Viewing all articles
Browse latest Browse all 1877

Created Unassigned: WorkSheet CopyTo doesn't transform Named Ranges addresses [9270]

$
0
0
I'm trying to replicate a Worksheet several time in a Workbook and I'm doing using the following code:
```
IXLWorksheet worksheet = modelSheet.CopyTo("SheetName");
```
When I open the generated document the NamedRanges were copied, using the same name as expected, but all of them are associated to the model worksheet (source). I was expecting the NamedRange address to be changed to the target Worksheet too.

Example:
```
"=ModelSheet!$B$10:$B$10" would transform to "=TargetSheet!$B$10:$B$10"
```

Is there a way to do it or isn't it supported yet?

Many Thanks & great work my man, incredible Lib!
Cheers!

Viewing all articles
Browse latest Browse all 1877

Trending Articles