I am trying to list the sheet names within the workbook using VBA. I found the following code online for which i modified for my particular project. problem is i need to take it one step further but not sure how exactly to modify it. As-is this code is currently listing all tabs. i do not want to list the first 7 tabs. How can i modify the code to start listing the sheet names starting with tab 8?
Sub ListAllSheets()
Dim ws As Worksheet
Dim Counter As Integer
Counter = c
For Each ws In ActiveWorkbook.Worksheets
Sheets("Metrics").Select
Range("B3").Select
ActiveCell.Offset(Counter, 0).Value = ws.Name
Counter = Counter + 1
Next ws
End Sub
Sub ListAllSheets()
Dim ws As Worksheet
Dim Counter As Integer
Counter = c
For Each ws In ActiveWorkbook.Worksheets
Sheets("Metrics").Select
Range("B3").Select
ActiveCell.Offset(Counter, 0).Value = ws.Name
Counter = Counter + 1
Next ws
End Sub