Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
CAn anyone help me use this code from MSDN
I'm trying to easily generate a list of worksheets in a workbook. Private Sub ListSheets() Dim sh As Excel.Worksheet Dim rng As Excel.Range Dim i As Integer rng = ThisApplication.Range("rangeSheets") For Each sh In ThisWorkbook.Sheets rng.Offset(i, 0).Value = sh.Name i = i + 1 Next sh End Sub Thanks Bra -- Message posted from http://www.ExcelForum.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
List of worksheets | New Users to Excel | |||
List specific worksheets | Excel Discussion (Misc queries) | |||
Get a list of worksheets from a WB | Excel Discussion (Misc queries) | |||
how do i list the name off all my worksheets on a sheet | Excel Worksheet Functions | |||
Create list of worksheets | Excel Discussion (Misc queries) |