Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Merci Pascal,
Combined with KeepItCool's response, this completes the picture. Your code allows a write to the CodeName and KeepItCool's recommendation gives the read - e.g.: X = Worksheets("Sheet1").CodeNam Just as a follow-up. This is useful for managing worksheets where the user can create copies of sheets, rename them and delete them. If the sheet is considered a form, you can use the CodeName code to manage the forms as a collection of objects. Brgds, Mark "papou" wrote: Hello Mark ActiveWorkbook.VBProject.VBComponents("Sheet1").Na me = "NewName" HTH Regards Pascal "ZuludogM" a écrit dans le message de ... If you select a sheet and look at the Properties, you will find two properties that name the sheet: (Name) Name When a user changes the sheet name by typing into the sheet Tab, they are changing the Name property, but not the (Name) property. Example: When you open a new workbook, Sheet1 will have properties: (Name) = "Sheet1" Name ="Sheet1" When the user renames that sheet to "Revenues" the properties become: (Name) = "Sheet1" Name = "Revenues" You can rename the (Name) property directly in the Properties table for the sheet, however, I would like to read (and even write) that property in VBA, but the only methods I can find are for the Name property. Anybody know how to do this? Thanks, Mark |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how do I find out property values for each control object? | Excel Discussion (Misc queries) | |||
2007 Form Control/ActiveX Control font difference | Excel Discussion (Misc queries) | |||
changing an activex control property using a macro | Excel Discussion (Misc queries) | |||
Can I control linked cell property value in a copied ActiveX contr | Excel Discussion (Misc queries) | |||
Calendar Control: Can't exit design mode because control can't be created | Excel Programming |