KlausW
Active Member
- Joined
- Sep 9, 2020
- Messages
- 453
- Office Version
- 2016
- Platform
- Windows
Hi everyone I use this VBA code to show all sheets in an Excel file. In a sheet.
Work very well. I can't figure out how to get it to show all sheets after the 5th sheet In a sheet.
Anyone who can help?
Any help will be appreciated
Best Regards Klaus W
Work very well. I can't figure out how to get it to show all sheets after the 5th sheet In a sheet.
Anyone who can help?
Any help will be appreciated
Best Regards Klaus W
VBA Code:
Sub ListSheets()
Dim ws As Worksheet
Dim x As Integer
x = 1
'Sheets("Sheet1").Range("A:A").Clear
For Each ws In Worksheets
Sheets("Sheet1").Cells(x, 2) = ws.Name
x = x + 1
Next ws
End Sub