Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
How about
Sub CreateSheetsList() Dim wkbk As Excel.Workbook Dim wksht As Excel.Worksheet Dim sheetsCount As Long Dim sheetNames() As Variant Dim i As Long Set wkbk = ActiveWorkbook Set wksht = ActiveSheet sheetsCount = wkbk.Sheets.Count ReDim sheetNames(1 To sheetsCount) For i = 1 To sheetsCount sheetNames(i) = wkbk.Sheets(i).Name Next i wksht.Range(wksht.Range("A1"), wksht.Range("A" & sheetsCount)).Value = Application.Transpose(sheetNames) End Sub --JP On Sep 30, 12:53*pm, Al wrote: What would be the vb code to create a list of the sheet names in an existing sheet? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Generate sheet names from list, assign data to summary sheet. | Excel Programming | |||
Need to create a list of sheets from a list of names in column a | Excel Programming | |||
create a random list of names from a list of names in EXCEL | Excel Worksheet Functions | |||
How do I create a list of names and addresses? | Excel Discussion (Misc queries) | |||
List Of Sheet Names & Create Hotlinks for each one | Excel Programming |