#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Worksheet Name

Hi All,

I am a first timer. So bare with me.
I would like to get the workbook name and place it in a cell in the
worksheet.

This is what I do. I copy a worksheet, when it creates a copy it gives it
the name of the worksheet it was copied from and it adds a "(2)" at the end
of the name.

I want to take this name and place it in a cell in the workbook, and if the
name of the sheet is changed I want it to reflect the change. Could some one
help.

Thanks

Peter

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Worksheet Name

I want to take this name and place it in a cell in the workbook, and if the
name of the sheet is changed I want it to reflect the change


One way, from a posting by Richard Schollar:
=REPLACE(CELL("Filename",A1),1,FIND("]",CELL("filename",A1)),"")

The workbook must have been saved beforehand
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:25,000 Files:300 Subscribers:70
xdemechanik
---
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Worksheet Name

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

If this post helps click Yes
---------------
Jacob Skaria


"_Pete_" wrote:

Hi All,

I am a first timer. So bare with me.
I would like to get the workbook name and place it in a cell in the
worksheet.

This is what I do. I copy a worksheet, when it creates a copy it gives it
the name of the worksheet it was copied from and it adds a "(2)" at the end
of the name.

I want to take this name and place it in a cell in the workbook, and if the
name of the sheet is changed I want it to reflect the change. Could some one
help.

Thanks

Peter

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
Unable to Insert Worksheet/Move and copy worksheet Excel 2003 lukerush Excel Worksheet Functions 2 September 7th 06 05:05 PM
plot graph from multiple worksheet as embedded chart object on every worksheet [email protected] Excel Discussion (Misc queries) 2 August 24th 06 05:26 PM
plot graph from multiple worksheet as embedded chart object on every worksheet jeftiong New Users to Excel 0 August 23rd 06 01:50 PM
Upload multiple text files into 1 excel worksheet + put the filename as the first column in the worksheet Aster Excel Worksheet Functions 3 March 12th 06 09:58 AM
I want in one worksheet to relatively link to/reference cells in another without changing the format of the current worksheet. [email protected] Excel Discussion (Misc queries) 0 September 22nd 05 04:39 PM


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