Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Passing listindex to worksheet names
Greetings all,
I'm trying to use the listindex to select a Worksheet. I don't want to use value to set the worksheet name as the list values can be too long. Worksheets names are "MD Catch 1", "MD Catch 2", "MD Catch 3", etc I just can't figure how to pass the index+1 to the name property Any hints would be greatly appreciated. Sub Sheet_Selections() 'sets the worksheet to use Wsht = Area_Selection.Which_Catchment.ListIndex + 1 'worksheet to use Alpha = Worksheets("MD Catch 1") 'other code End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Passing a WorkSheet from a Function??? | Excel Worksheet Functions | |||
ListIndex | Excel Programming | |||
Passing Selected Sheets' Names to a Macro | Excel Programming | |||
ListIndex = cell value? | Excel Programming | |||
Passing a Variable from Worksheet to Workbook | Excel Programming |