ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Worksheet Names (https://www.excelbanter.com/excel-discussion-misc-queries/155983-worksheet-names.html)

Bre-x

Worksheet Names
 
Hi,

is there a way to get Worksheet Names and enter that information on a
column?

Bre-x



Bre-x

Worksheet Names
 
Sub Macro1()
Dim i As Long
Dim sh As Worksheet
i = 2
For Each sh In ActiveWorkbook.Sheets
Range("A" & i) = sh.Name
i = i + 1
Next

End Sub

:P


"Bre-x" wrote in message
...
Hi,

is there a way to get Worksheet Names and enter that information on a
column?

Bre-x






All times are GMT +1. The time now is 10:51 PM.

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