setting cell values to worksheet names

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

The G-man

Thread Starter
Joined
Jun 3, 2001
Messages
140
Is there a way to set the value of a cell to the name of that particular worksheet with a function???

sorry about the consecutive posts, i'm working on a project for work.

thanks for any help!
 
Joined
Mar 31, 2004
Messages
1
Hello:

Try using the function =cell("filename") in any cell. It will return the complete path including the tab name of the spreadsheet.

I found this by going to help and looking up information functions.

Hope this helps.

ddcrab
 
Joined
Aug 30, 2003
Messages
2,702
To extract just the tab name to a cell, use

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

The workbook must be saved before this'll work (else you'll get "#VALUE!" IIRC).

Rgds,
Andy
 

The G-man

Thread Starter
Joined
Jun 3, 2001
Messages
140
this will be a great help. i did finish my project last night and i will post the code at my other post.

thanks guys!
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Top