#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Worksheet Names


Is there any way of generating a list a worksheet names, as opposed to
Range Names, in a worksheet, or alternatively something that will
reference a worksheet name, changing if the worksheet name is
subsequently changed?

I want to start putting explanation worksheets in my workbooks to
explain how the worksheets interact and what their purposes are, so any
comments along the lines of assisting with this would be gratefully
received. :)


--
Timmy Mac1
------------------------------------------------------------------------
Timmy Mac1's Profile: http://www.excelforum.com/member.php...o&userid=15188
View this thread: http://www.excelforum.com/showthread...hreadid=574070

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Worksheet Names

This tiny macro will return worksheet names:

Function nameit(i As Integer) As String
Application.Volatile
nameit = Worksheets(i).Name
End Function


For example, =nameit(1) will return the name of the first worksheet.
=nameit(2) will return the name of the second worksheet, etc.
--
Gary's Student


"Timmy Mac1" wrote:


Is there any way of generating a list a worksheet names, as opposed to
Range Names, in a worksheet, or alternatively something that will
reference a worksheet name, changing if the worksheet name is
subsequently changed?

I want to start putting explanation worksheets in my workbooks to
explain how the worksheets interact and what their purposes are, so any
comments along the lines of assisting with this would be gratefully
received. :)


--
Timmy Mac1
------------------------------------------------------------------------
Timmy Mac1's Profile: http://www.excelforum.com/member.php...o&userid=15188
View this thread: http://www.excelforum.com/showthread...hreadid=574070


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Worksheet Names

Sub ListWorksheets()
Dim i As Long

For 1 = 1 To Activeworkbook.Worksheets.Count
Cells(i,"A").Value = Activeworkbook.Worksheets(i).Name
Next i

End Sub

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Timmy Mac1" wrote
in message ...

Is there any way of generating a list a worksheet names, as opposed to
Range Names, in a worksheet, or alternatively something that will
reference a worksheet name, changing if the worksheet name is
subsequently changed?

I want to start putting explanation worksheets in my workbooks to
explain how the worksheets interact and what their purposes are, so any
comments along the lines of assisting with this would be gratefully
received. :)


--
Timmy Mac1
------------------------------------------------------------------------
Timmy Mac1's Profile:

http://www.excelforum.com/member.php...o&userid=15188
View this thread: http://www.excelforum.com/showthread...hreadid=574070



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Worksheet Names


Many thanks GS and BP :)


--
Timmy Mac1
------------------------------------------------------------------------
Timmy Mac1's Profile: http://www.excelforum.com/member.php...o&userid=15188
View this thread: http://www.excelforum.com/showthread...hreadid=574070

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Duplicate Range Names by worksheet FlaAl Excel Discussion (Misc queries) 0 May 24th 06 05:14 PM
Adding worksheet tab names to the first worksheet adam Excel Discussion (Misc queries) 1 May 17th 06 02:07 AM
In Excel, how do I change worksheet headers (A,B) to names (Box)? Tom McGuire New Users to Excel 4 January 18th 06 05:39 PM
Lookups using worksheet names Soapydux Excel Discussion (Misc queries) 3 November 6th 05 04:17 PM
Dynamic Worksheet Names Łukasz Czech Links and Linking in Excel 1 August 15th 05 09:41 PM


All times are GMT +1. The time now is 05:05 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"