G
Gert-Jan
Hi,
Can anyone help me with writing a macro that lists all the sheets of of a
workbook to a certain range?
I have this:
Sub test()
Dim NumSheets As Integer
Dim sht As Object
NumSheets = Sheets.Count
For j = 1 To NumSheets
Cells(j + 1, 8) = Sheets(j).Name
Next j
End Sub
But it writes ALL sheetnames, not only the visible.
Thanks in advance, Gert-Jan
Can anyone help me with writing a macro that lists all the sheets of of a
workbook to a certain range?
I have this:
Sub test()
Dim NumSheets As Integer
Dim sht As Object
NumSheets = Sheets.Count
For j = 1 To NumSheets
Cells(j + 1, 8) = Sheets(j).Name
Next j
End Sub
But it writes ALL sheetnames, not only the visible.
Thanks in advance, Gert-Jan