Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Kanagabalan
 
Posts: n/a
Default Accessing the sheetname in a cell

I am trying to take the sheetname from a cell to print the content of the
mentioned sheetname in the another cell. the cell id will be same for
different sheet name.

Example: we have four sheets named sheet1, sheet2, sheet3 & sheet4 in the
same workbook. in this sheet1 to sheet3 is having the same template but with
differnt values. I wish to creat the summary of the above one or two or three
sheets in the Sheet4. so I wish to take the sheetname as input from the user
in sheet4 which will help me to access the concerned cells (cell id of
different items are constant for all the templates).

Hope you understood the problem, kindly give me a sollution for this.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
R..VENKATARAMAN
 
Posts: n/a
Default Accessing the sheetname in a cell

suppose B6 of sheet1 has entry
sheet2

if you have a code
Worksheets(Range("B6").Value).Activate
in a macro and run it
it will activate sheet2
you get the hang of it and use it in your macro


"Kanagabalan" wrote in message
...
I am trying to take the sheetname from a cell to print the content of the
mentioned sheetname in the another cell. the cell id will be same for
different sheet name.

Example: we have four sheets named sheet1, sheet2, sheet3 & sheet4 in the
same workbook. in this sheet1 to sheet3 is having the same template but
with
differnt values. I wish to creat the summary of the above one or two or
three
sheets in the Sheet4. so I wish to take the sheetname as input from the
user
in sheet4 which will help me to access the concerned cells (cell id of
different items are constant for all the templates).

Hope you understood the problem, kindly give me a sollution for this.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLR
 
Posts: n/a
Default Accessing the sheetname in a cell

Assuming the name of the sheet is entered in a cell named "SheetName", the
following will return the contents of cell A1 of that sheet..........

=INDIRECT(SheetName&"!A1")

hth
Vaya con Dios,
Chuck, CABGx3




"Kanagabalan" wrote:

I am trying to take the sheetname from a cell to print the content of the
mentioned sheetname in the another cell. the cell id will be same for
different sheet name.

Example: we have four sheets named sheet1, sheet2, sheet3 & sheet4 in the
same workbook. in this sheet1 to sheet3 is having the same template but with
differnt values. I wish to creat the summary of the above one or two or three
sheets in the Sheet4. so I wish to take the sheetname as input from the user
in sheet4 which will help me to access the concerned cells (cell id of
different items are constant for all the templates).

Hope you understood the problem, kindly give me a sollution for this.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Kanagabalan
 
Posts: n/a
Default Accessing the sheetname in a cell

This is what i exactly needed for my excel programming. Thanks a lot.

GKB
Chennai

"CLR" wrote:

Assuming the name of the sheet is entered in a cell named "SheetName", the
following will return the contents of cell A1 of that sheet..........

=INDIRECT(SheetName&"!A1")

hth
Vaya con Dios,
Chuck, CABGx3




"Kanagabalan" wrote:

I am trying to take the sheetname from a cell to print the content of the
mentioned sheetname in the another cell. the cell id will be same for
different sheet name.

Example: we have four sheets named sheet1, sheet2, sheet3 & sheet4 in the
same workbook. in this sheet1 to sheet3 is having the same template but with
differnt values. I wish to creat the summary of the above one or two or three
sheets in the Sheet4. so I wish to take the sheetname as input from the user
in sheet4 which will help me to access the concerned cells (cell id of
different items are constant for all the templates).

Hope you understood the problem, kindly give me a sollution for this.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLR
 
Posts: n/a
Default Accessing the sheetname in a cell

You're quite welcome......glad to be of help.........thanks for the
feedback....

Vaya con Dios,
Chuck, CABGx3


"Kanagabalan" wrote in message
...
This is what i exactly needed for my excel programming. Thanks a lot.

GKB
Chennai

"CLR" wrote:

Assuming the name of the sheet is entered in a cell named "SheetName",

the
following will return the contents of cell A1 of that sheet..........

=INDIRECT(SheetName&"!A1")

hth
Vaya con Dios,
Chuck, CABGx3




"Kanagabalan" wrote:

I am trying to take the sheetname from a cell to print the content of

the
mentioned sheetname in the another cell. the cell id will be same for
different sheet name.

Example: we have four sheets named sheet1, sheet2, sheet3 & sheet4 in

the
same workbook. in this sheet1 to sheet3 is having the same template

but with
differnt values. I wish to creat the summary of the above one or two

or three
sheets in the Sheet4. so I wish to take the sheetname as input from

the user
in sheet4 which will help me to access the concerned cells (cell id of
different items are constant for all the templates).

Hope you understood the problem, kindly give me a sollution for this.



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
Urgent date/scheduling calc needed jct Excel Worksheet Functions 3 February 24th 06 01:36 AM
Dates of a Day for a month & year cell formulas mikeburg Excel Discussion (Misc queries) 2 December 29th 05 10:14 PM
copying cell names Al Excel Discussion (Misc queries) 12 August 11th 05 03:01 PM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM
up to 7 functions? ALex Excel Worksheet Functions 10 April 12th 05 06:42 PM


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