Following routing will update Cell B2 with count of total numbers of sheet and Update Column C with names of sheets.
Sub ReadNames()
Range("B2") = Worksheets.Count
For X = 1 To Worksheets.Count
Range("C" & X).Value = Worksheets(X).Name
Next X
End Sub
Sub ReadNames()
Range("B2") = Worksheets.Count
For X = 1 To Worksheets.Count
Range("C" & X).Value = Worksheets(X).Name
Next X
End Sub
No comments:
Post a Comment