Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Initially I have Sheet1(Sheet3). Later I rename the Sheet 3. Let's
assume it becomes Sheet1(AAA). The name changes periodically. So, I would like to select it using the sheet's index. What would be the macro/syntax for this? Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sheets(1).Activate
However this relates to the first sheet in the workbook, change it's position and index number changes. Consider using the codename which can be set in the VBA Editor. -- Regards, Nigel wrote in message ups.com... Initially I have Sheet1(Sheet3). Later I rename the Sheet 3. Let's assume it becomes Sheet1(AAA). The name changes periodically. So, I would like to select it using the sheet's index. What would be the macro/syntax for this? Thanks |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Nov 13, 10:54 am, "Nigel" wrote:
Sheets(1).Activate However this relates to the first sheet in the workbook, change it's position and index number changes. Consider using the codename which can be set in the VBA Editor. -- Regards, Nigel wrote in message ups.com... Initially I have Sheet1(Sheet3). Later I rename the Sheet 3. Let's assume it becomes Sheet1(AAA). The name changes periodically. So, I would like to select it using the sheet's index. What would be the macro/syntax for this? Thanks- Hide quoted text - - Show quoted text - Hi.. could you please let me know how to tackle this problem using something in the lines of dim wsindex as integer if wsindex = 1 then 'activate that sheet end if Thanks |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You can just delete the sheet directly by using "Sheets(1).Delete" or
"Sheet1.Delete" HTH, JP On Nov 13, 2:46 pm, wrote: Hi.. could you please let me know how to tackle this problem using something in the lines of dim wsindex as integer if wsindex = 1 then 'activate that sheet end if Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Selecting only from index for combobox | Excel Programming | |||
Index and named ranges selecting difficulty | Excel Worksheet Functions | |||
Selecting chartobject without index no. | Charts and Charting in Excel | |||
Selecting Sheet1 by index rather than sheet name | Excel Programming | |||
Selecting a cell from an index | Excel Programming |