Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dear Experts
I am trying to select a very hidden sheet via VBA whose name I capture from a form in the Leftstring Variable as shown below. I find I cannot then select the sheet to capture a range , not sure how i do this - sorry. I am using Excel 2003 - if you help many thanks as usual Chris For i = 0 To DT2.ListBox2.ListCount - 1 If DT2.ListBox2.Selected(i) Then fullstring = DT2.ListBox2.Value position = InStr(fullstring, "=") leftstring = Left(fullstring, position - 1) rightstring = Right(fullstring, (Len(fullstring) - position)) End If Next i Sheets(leftstring).Select " so error occurs here mycodearray = Range("C1:C5000") -- C Ward |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Function To Select the Hidden Rows & Columns in the Current Sheet | Excel Discussion (Misc queries) | |||
macro running on timer fails to select proper sheet | Excel Programming | |||
How do I select price from sheet.b where sheet.a part no = sheet.b | Excel Worksheet Functions | |||
"With Sheets" Issue - macro on one sheet to affect hidden rows on other sheets | Excel Programming | |||
Problem pasting a row from a hidden sheet to the first free row on another visible sheet | Excel Programming |