Hi,
Can this code be modified to clear before updating so it removes any sheet names if those sheets have been deleted?
Thank you
Can this code be modified to clear before updating so it removes any sheet names if those sheets have been deleted?
Code:
Sub GetWSNames()
Dim ws As String
Dim i As Long
With ActiveSheet
For i = 1 To .Parent.Worksheets.Count
ws = .Parent.Worksheets(i).Name
.Range("A" & i + 1).Value = ws
Next i
End With
End Sub
Thank you