ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Trying to list tab/worksheet names in a summary worksheet (https://www.excelbanter.com/excel-discussion-misc-queries/175838-trying-list-tab-worksheet-names-summary-worksheet.html)

mich

Trying to list tab/worksheet names in a summary worksheet
 
I am trying to summarize my worksheets (100) into one summary page.

I need a list of tab names (to start).

The list may change.

Any advice?

FSt1

Trying to list tab/worksheet names in a summary worksheet
 
hi
this will create a list of worksheet names on an activesheet.
Sub testI()
Dim WS As Worksheet
Dim r As Range
Dim rd As Range
Set r = Range("A2")
For Each WS In Worksheets
Set rd = r.Offset(1, 0)
r.Value = WS.Name
Set r = rd
Next
End Sub

regards
FSt1

"Mich" wrote:

I am trying to summarize my worksheets (100) into one summary page.

I need a list of tab names (to start).

The list may change.

Any advice?



All times are GMT +1. The time now is 03:31 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com