Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi All,
Is there a way to change the sheet name Excel assigns to a sheet using VBA? If so would anybody be kind enough to provide a code snippet? The code below copy's a sheet(s) and renames the tab but l want to also rename the name assigned by Excel. A further problem is that l dont know how to identify the sheet name that Excel has assigned to the newly copied sheet! For i = 1 To NoSheetsReqd Sheets("My Template").Copy Befo=Sheets("2") Sheets("My Template (2)").Select Sheets("My Template (2)").Name = "New Sht Name" Next i All help gratefully appreciated. For the curious l am building a solution where complete control of the worksheets order & positioning is needed but it is desirable for the end-user to be able to change the tab name to make it easily identifiable to them, ie not just a number, so l can then use Excels assigned names to control the order, positioning etc. Regards MB |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Changing the name of a sheet | Excel Discussion (Misc queries) | |||
Referencing a sheet name thats ever changing | Excel Programming | |||
Changing Sheet Names | Excel Programming | |||
Changing Sheet Name | Excel Programming | |||
changing sheet names | Excel Programming |