Hi MDeLeon, tanks for copying worksheet issue has been fixed .
And do u find the copy worksheet's style is different between the source worksheet in my last example code?
Looks like auto created more boders or background colors in the worksheet named "Travel".
And I used the code that you provide to copy the workbook's named ranges, it's OK. :-D
But it looks like not beautiful in my mind.
e.g.
"wbSource.NamedRanges.Where(nr => nr.Name != "CellHasFormula")) "
And I think this code packaging a extend method maybe look better or deal in the NamedRanges Property . :-D
This is just my own opinion and maybe not better.
And do u find the copy worksheet's style is different between the source worksheet in my last example code?
Looks like auto created more boders or background colors in the worksheet named "Travel".
And I used the code that you provide to copy the workbook's named ranges, it's OK. :-D
But it looks like not beautiful in my mind.
e.g.
"wbSource.NamedRanges.Where(nr => nr.Name != "CellHasFormula")) "
And I think this code packaging a extend method maybe look better or deal in the NamedRanges Property . :-D
This is just my own opinion and maybe not better.