Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I am trying to select a worksheet by an object name: Sheet 1 user selection of worksheets = Vnumber Sub SheetExists() Dim Sh As Worksheet, Exist As Boolean, Vnumber As Object Set Vnumber = Range("F7") Exist = False For Each Sh In Sheets If Sh.Name = Vumber Then Exist = True End If Next Sh MsgBox Vnumber Sheets = Vnumber.Select (*this does not work)* Range("A1").Select I have also tried Sheets(Vnumber).Select Sheets.Name = Vnumber.Select Thanks Ashle -- Ashley Fran ----------------------------------------------------------------------- Ashley Frank's Profile: http://www.excelforum.com/member.php...fo&userid=2648 View this thread: http://www.excelforum.com/showthread.php?threadid=39754 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to select all worksheets in a workbook | Excel Discussion (Misc queries) | |||
Combobox that would select worksheets | Excel Programming | |||
Select all worksheets | Excel Worksheet Functions | |||
Select all worksheets | Excel Worksheet Functions | |||
How do I select all worksheets | Excel Worksheet Functions |