Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
how can I copy sheets in same workbook and set immedietly new name for this "copy" by one instruction. When I used Sheets("test").Copy excel automaticly generate "test (2)" or "test (3)", this I dont need. thanks Tom |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
There is a way to beat this.
If you have observed, when you copy a sheet, the newly created sheet is active. after copy, you can immediately use activesheet.name = "your_name" then you can control this. Sub copy_sheet() Sheets("Sheet1").Copy After:=Sheets(1) ActiveSheet.Name = "Newname" End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
copy cell info to other sheets, other sheets dont contain all row. | Excel Worksheet Functions | |||
move or copy sheets doesn't copy format | Excel Worksheet Functions | |||
copy sheets | Excel Discussion (Misc queries) | |||
Copy Sheets | Excel Discussion (Misc queries) | |||
in VBA Sheets("mysheet").Copy Befo=Sheets(1) how do i get a reference to the newly created copy of this sheet? | Excel Worksheet Functions |