Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15
Default Functions & Tab Names

My question is simple.

Does anyone out here know of a function that returns the name of a specific
TAB in a workbook?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 96
Default Functions & Tab Names

I only know of a trick formula that will return the value of the sheet the
formula is entered into:

=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,256)

What did you have in mind? How would you envision this function working?
What are your requirements?

--
"Actually, I *am* a rocket scientist." -- JB
(www.MadRocketScientist.com)

Your feedback is appreciated, click YES if this post helped you.


"HpyTrvlr69" wrote:

My question is simple.

Does anyone out here know of a function that returns the name of a specific
TAB in a workbook?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15
Default Functions & Tab Names

Thank you for your reply RocketSci. I think that will work for what I am doing.

p.s. Im not a Rocket Scientist.....no ..really.

"JBeaucaire" wrote:

I only know of a trick formula that will return the value of the sheet the
formula is entered into:

=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,256)

What did you have in mind? How would you envision this function working?
What are your requirements?

--
"Actually, I *am* a rocket scientist." -- JB
(www.MadRocketScientist.com)

Your feedback is appreciated, click YES if this post helped you.


"HpyTrvlr69" wrote:

My question is simple.

Does anyone out here know of a function that returns the name of a specific
TAB in a workbook?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Functions & Tab Names

=MID(CELL("Filename",A1),FIND("]",CELL("Filename",A1))+1,255)

Entered in a cell exactly as above will return the name of the sheet.

Note: workbook must have been saved at least once.

Couple more using VBA

Sub getname()
MsgBox ThisWorkbook.ActiveSheet.Name
End Sub

Sub get_Sheetname()
Dim num As Long
num = InputBox("Type a number")
MsgBox "Sheet" & num & "'s name is " & Sheets(num).Name
End Sub



Gord Dibben MS Excel MVP


On Mon, 30 Nov 2009 15:09:02 -0800, HpyTrvlr69
wrote:

My question is simple.

Does anyone out here know of a function that returns the name of a specific
TAB in a workbook?


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
Using range names in functions JDC Excel Worksheet Functions 1 May 11th 09 04:53 PM
cell names in functions Max Excel Discussion (Misc queries) 2 February 19th 07 09:49 AM
IF functions and Names Ranges JaB Excel Discussion (Misc queries) 1 January 18th 07 12:30 PM
working with names and functions ngg Excel Worksheet Functions 3 November 30th 06 10:39 PM
Tracking worksheet names in functions locutus243 Excel Worksheet Functions 8 December 5th 05 08:56 PM


All times are GMT +1. The time now is 04:18 PM.

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"