Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to figure out how to modify the code to select a worksheet based
on a cell. I have new worksheets every day that are labeled in a manor as this: November 8, 2005 and November 7, 2005 , etc... I have a data validation list and a button. The list contains the names of the worksheets and I want to beable to use the drop and then hit the button to activate that sheet. This is what I have so far and cannot think of where to go from here. Sub Button8_Click() Dim sh As Worksheet Dim rng As Range Set sh = Sheets("indvdl") Set rng = sh.Range("a9") Worksheets.Select = rng End Sub I even tried this: Sub Button8_Click() Dim sh As Worksheet Dim rng As Range Set sh = Sheets("indvdl") Set rng = sh.Range("a9") Worksheets("A9").Select End Sub Any help please. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Select a variable range | Excel Worksheet Functions | |||
select cell by variable name | Excel Discussion (Misc queries) | |||
In Excel 2000, How do you select the whole of a worksheet (Select. | Excel Discussion (Misc queries) | |||
In Excel 2000, How do you select the whole of a worksheet (Select. | Excel Discussion (Misc queries) | |||
Select workbook with variable name. | Excel Programming |