Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The code below is in a userform.
MyText appears in the correct format. However, when run, I get the <<error9, out of range error message If I substiute ...Worksheets(MyText)... with ...Worksheets(6)... it runs. What have I done wrong?? Private Sub ListBox1_MouseUp(ByVal Button As Integer, ByVal Shift As Integer, _ ByVal X As Single, ByVal Y As Single) MyText = ListBox1.Text Application.ActiveWorkbook.Worksheets(MyText).Sele ct Unload UserForm1 End Sub -- donwb |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Select a worksheet | Excel Worksheet Functions | |||
Can't select worksheet | Excel Programming | |||
Can I create a worksheet menu to select each other worksheet | 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) |