Thread: Sheet Name
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
John Viall John Viall is offline
external usenet poster
 
Posts: 3
Default Sheet Name

I am trying to make a function that collects the name of a
sheet, and automatically fill in a cell on that sheet with
the name.

I'm trying something like:

Public Function Name() As String
On Error GoTo Skip
Back:
For x = 1 To 35
Name = Sheets(Sheet & x).Name
Next x
Skip:
x = x + 1
GoTo Back
End Function

Any help would be appreciated.

Thanks,
John