Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,670
Default How to retrieve the sheet name?

Does anyone have any suggestions on how to retrieve the sheet name?
For example, the sheet is named 'Date", I would like to retrieve its name
into cell A1, does anyone have any suggestions?
Thanks in advance for any suggestions
Eric
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default How to retrieve the sheet name?

On 8 avr, 23:30, Eric wrote:
Does anyone have any suggestions on how to retrieve the sheet name?
For example, the sheet is named 'Date", I would like to retrieve its name
into cell A1, does anyone have any suggestions?
Thanks in advance for any suggestions
Eric


Hello,

You can write a macro that automaticly writes the active sheet name in
the A1 cell.
In VBA it can be coded like this :

Sub getSheetNameInA1()
ActiveSheet.Range("A1") .value=ActiveSheet.Name
End Sub

Caution: it will overload the previous data in cell "A1"
You can launch this macro via the "Tools / Macros menu"

Hope this helps


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default How to retrieve the sheet name?

Hi Eric,

The the following...

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



"Eric" wrote:

Does anyone have any suggestions on how to retrieve the sheet name?
For example, the sheet is named 'Date", I would like to retrieve its name
into cell A1, does anyone have any suggestions?
Thanks in advance for any suggestions
Eric

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
Lookup value one and retrieve more then one corresponding value fromanother sheet RAJ P Excel Worksheet Functions 0 October 30th 09 11:13 AM
Retrieve ID from NT? Don Excel Discussion (Misc queries) 3 March 2nd 09 05:54 PM
How do i retrieve Windows User name on a excel sheet? Sirigeri Goutam Shetty Excel Discussion (Misc queries) 4 November 12th 08 01:55 PM
to retrieve a particular value from excel sheet refina New Users to Excel 1 June 14th 08 07:55 PM
Retrieve Data from one sheet to another karstens Excel Worksheet Functions 0 July 11th 06 08:49 PM


All times are GMT +1. The time now is 12:59 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"