#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
SF SF is offline
external usenet poster
 
Posts: 8
Default Tab variable

Hi,

I have 12 worksheets represent each month of the year. In every worksheet, I
have a label or header showing "Monthly Sale of XXXX". I try to combine
string with the [Tab] hoping to replace the XXXX with the name of the
Worksheet, but I am not able to acheive that.

Could the NG suggest something?

SF


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

One way ..

Click Insert Name Define
Put under "Names in workbook:": WSN
Put in the "Refers to:" box:
=MID(CELL("Filename",INDIRECT("A1")),FIND("]",CELL("Filename",INDIRECT("A1")
))+1,32)
Click OK

The above defines WSN as a name we can use to refer to the sheetname in
formulas. It will auto-extract the sheetname implicitly (file must be saved
beforehand). Technique came from a post by Harlan.

Then you could use in any sheet, in any cell:
="Monthly Sale of "&WSN
to return the desired results
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"SF" wrote:
I have 12 worksheets represent each month of the year. In every worksheet, I
have a label or header showing "Monthly Sale of XXXX". I try to combine
string with the [Tab] hoping to replace the XXXX with the name of the
Worksheet, but I am not able to acheive that.

Could the NG suggest something?

SF


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
variable height variable width stacked bar charts ambthiru Charts and Charting in Excel 3 January 18th 06 11:41 PM
variable in a link where the variable is the name of the sheet darrelly Excel Worksheet Functions 1 October 7th 05 08:24 AM
Sum cells based on a row variable and seperate column variable CheeseHeadTransplant Excel Worksheet Functions 10 September 23rd 05 06:59 PM
object variable or with block variable not set Diego Excel Discussion (Misc queries) 1 August 9th 05 02:46 PM
why is it saying sheetcnt is "variable not defined" how to do a global variable to share over multiple functions in vba for excel? Daniel Excel Worksheet Functions 1 July 9th 05 03:05 AM


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