ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   List of Sheets (https://www.excelbanter.com/excel-programming/293781-re-list-sheets.html)

Dnk

List of Sheets
 
Try this:

Sub WorkSheetNames()
Dim sht As Worksheet
Dim mySht As Worksheet
Set mySht = Sheets("Sheet1")
Dim r As Integer
Dim c As Integer
r = 1
c = 1
For Each sht In Worksheets
mySht.Cells(r, c) = sht.Name
r = r + 1
Next sht
End Sub











"Jahsonn" wrote in message ...
Hi Guys....

Is there an easy way to list all sheet names from a
workbook in a sheet on the workbook?

TIA



All times are GMT +1. The time now is 07:07 AM.

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