Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default How do I put the name of a worksheet into a cell in that workshee.

I have created a template that has several identical worksheets in a workbook
with an overall summary sheet that provides a report of the totals from all
worksheets. This is used as an expense system to assign costs to various
clients and provide an overall summary for VAT and employee reimbursement
purposes. Because the client list changes from year to year I have named the
worksheets Client 1, Client 2 etc.

What I want to do is to allow the person administering this sytem to rename
a worksheet and have that name automatically update the "Client name" cell at
the top of the worksheet, and thus be linked through to the summary sheet.
The problem is that I want each worksheet to have its own name - I used the
Microsoft KB to find out how to do this for the active worksheet and this
works fine but I cannot work out how to get this done for each worksheet
individually whether they are active or not.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default How do I put the name of a worksheet into a cell in that workshee.

Just had a thought - it really doesn't matter where the Client name is
entered so long as it reflects through to the worksheet name shown on the tab
and to the summary sheet. If it were easier to program the Client name could
be entered in the worksheet cell so long as the worksheet name is updated
automtically to reflect the change.

Alternatively, because each row in the summary sheet is made up of data
linked from the relevant worksheet the name of the worksheet is in the link.
If it could be extracted and put into a cell on the summary sheet I could
link this to the cell on the relevant worksheet.

Just a couple of additional thoughts - I have not got either to work myself.


"robertmharrison" wrote:

I have created a template that has several identical worksheets in a workbook
with an overall summary sheet that provides a report of the totals from all
worksheets. This is used as an expense system to assign costs to various
clients and provide an overall summary for VAT and employee reimbursement
purposes. Because the client list changes from year to year I have named the
worksheets Client 1, Client 2 etc.

What I want to do is to allow the person administering this sytem to rename
a worksheet and have that name automatically update the "Client name" cell at
the top of the worksheet, and thus be linked through to the summary sheet.
The problem is that I want each worksheet to have its own name - I used the
Microsoft KB to find out how to do this for the active worksheet and this
works fine but I cannot work out how to get this done for each worksheet
individually whether they are active or not.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default How do I put the name of a worksheet into a cell in that workshee.

Robert,

Not really sure I get the whole question, but you can get the sheet name in
a cell with the formula

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

--

HTH

RP
(remove nothere from the email address if mailing direct)


"robertmharrison" wrote in
message ...
Just had a thought - it really doesn't matter where the Client name is
entered so long as it reflects through to the worksheet name shown on the

tab
and to the summary sheet. If it were easier to program the Client name

could
be entered in the worksheet cell so long as the worksheet name is updated
automtically to reflect the change.

Alternatively, because each row in the summary sheet is made up of data
linked from the relevant worksheet the name of the worksheet is in the

link.
If it could be extracted and put into a cell on the summary sheet I could
link this to the cell on the relevant worksheet.

Just a couple of additional thoughts - I have not got either to work

myself.


"robertmharrison" wrote:

I have created a template that has several identical worksheets in a

workbook
with an overall summary sheet that provides a report of the totals from

all
worksheets. This is used as an expense system to assign costs to various
clients and provide an overall summary for VAT and employee

reimbursement
purposes. Because the client list changes from year to year I have named

the
worksheets Client 1, Client 2 etc.

What I want to do is to allow the person administering this sytem to

rename
a worksheet and have that name automatically update the "Client name"

cell at
the top of the worksheet, and thus be linked through to the summary

sheet.
The problem is that I want each worksheet to have its own name - I used

the
Microsoft KB to find out how to do this for the active worksheet and

this
works fine but I cannot work out how to get this done for each worksheet
individually whether they are active or not.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default How do I put the name of a worksheet into a cell in that workshee.

Hi Robert, here is my way to do that:

1) Create yout own function, e.g.:

Function MONTHNUMBER(rAnyCell)
Application.Volatile
MONTHNUMBER = rAnyCell.Parent.Name
End Function

2) use this function as formula in cell, e.g.:´
=MONTHNUMBER(A1)

Vlado
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
copy formulas from one worksheet to an entirely different workshee mgonzalez Excel Discussion (Misc queries) 2 December 27th 08 05:03 PM
Detailed worksheet value entered automatically in Summary workshee Victoria Excel Discussion (Misc queries) 2 September 26th 07 06:36 PM
rename worksheet based on contents of a cell in different workshee OfficeNDN Excel Discussion (Misc queries) 1 May 18th 07 06:02 AM
Linking Special Formats from One Worksheet to a Different Workshee ExcelNovice Excel Discussion (Misc queries) 0 January 18th 07 09:44 PM
total two cells from one worksheet to one cell in another workshee SillyLama Excel Discussion (Misc queries) 1 October 17th 06 02:40 AM


All times are GMT +1. The time now is 02:09 PM.

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"