Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to create a loop in VBA which will insert into a sheets().select
statement the name of the tab I am interested in. The tab names would be contained in a tab in the same workbook. Any suggestions? Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub LoopSheetsFromRange()
Dim NameRange as Range Dim ShName as Range Sheets("Sheet1").Select 'Assumes Sheet1 Holds Sheet Names Set NameRange = Range("A1:A10") 'Assumes A1:A10 are all valid Sheet Names For each ShName in NameRange Sheets(ShName.Value).Select Next End Sub HTH Die_Another_Day MFINE wrote: I am trying to create a loop in VBA which will insert into a sheets().select statement the name of the tab I am interested in. The tab names would be contained in a tab in the same workbook. Any suggestions? Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can i set up tabs within tabs on Excel? | Excel Worksheet Functions | |||
Excel - option to select the same header for mutliple tabs | Setting up and Configuration of Excel | |||
Select sheet tabs in workbook & save to separate workbook files | Excel Worksheet Functions | |||
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) |