Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
jimbob
 
Posts: n/a
Default Populate cell with Worksheet name


Is there a way to automatically populate a cell with the Worksheet tab
name? Thanks


--
jimbob
------------------------------------------------------------------------
jimbob's Profile: http://www.excelforum.com/member.php...o&userid=29107
View this thread: http://www.excelforum.com/showthread...hreadid=488412

  #2   Report Post  
Posted to microsoft.public.excel.misc
Paul B
 
Posts: n/a
Default Populate cell with Worksheet name

jimbob, try this,

=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,255)
file must be saved first

You may also want to have a look here

http://www.xldynamic.com/source/xld.xlFAQ0002.html


--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"jimbob" wrote in
message ...

Is there a way to automatically populate a cell with the Worksheet tab
name? Thanks


--
jimbob
------------------------------------------------------------------------
jimbob's Profile:

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



  #3   Report Post  
Posted to microsoft.public.excel.misc
jimbob
 
Posts: n/a
Default Populate cell with Worksheet name


Thanks Paul. That works great. Just one question. What is the "+1,255"
at the end of the formula for?


--
jimbob
------------------------------------------------------------------------
jimbob's Profile: http://www.excelforum.com/member.php...o&userid=29107
View this thread: http://www.excelforum.com/showthread...hreadid=488412

  #4   Report Post  
Posted to microsoft.public.excel.misc
JE McGimpsey
 
Posts: n/a
Default Populate cell with Worksheet name

The +1 means you start one character *after* the right bracket.

The 255 is just a large number of characters to include. 32 would be
sufficient. I've always used 255 just because it's the largest integer
that will fit in one byte (2^8 - 1). Such conventions were more common
back when people actually coded applications in assembly language.

In article ,
jimbob wrote:

Thanks Paul. That works great. Just one question. What is the "+1,255"
at the end of the formula for?

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
How to use a cell value to reference a worksheet name S2 Excel Worksheet Functions 2 October 10th 05 03:02 PM
HELP: How to Repeat Cell Content into a Second Worksheet ? Vince Excel Worksheet Functions 2 August 12th 05 07:19 PM
getting multiple data to populate another worksheet nick parker Excel Worksheet Functions 0 January 11th 05 02:59 PM
Using a cell reference to refernce worksheet in another work book [email protected] Excel Worksheet Functions 5 January 6th 05 06:26 PM
How to populate column with formula based on value in cell Cameron Stewart Excel Worksheet Functions 2 November 2nd 04 01:36 AM


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

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

About Us

"It's about Microsoft Excel"