Change these lines
to thisCode:Sheets(SheetToCopy).Copy After:=Sheets(Sheets.Count) Sheets(Sheets.Count).Name = NameTest
About the sharing-unsharingCode:Sheets(SheetToCopy).Copy After:=ActiveSheet ActiveSheet.Name = NameTest
You could incorperate this in your code to perform this task automated, but then you should be shure you are the only user at that time otherwise it could get nasty.




Reply With Quote

Bookmarks