Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default referring to a range

Hi,
This may qualify as the easiest question you have had but
I'm struggling...

I want a cell in sheet 2 to equal a named range in sheet 1.
I make the cell active then... I don't know how to refer
to it so it just pulls in its value.

Thanks a lot

Kevin

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default referring to a range

in sheet 2 to equal a named range in sheet 1.
I make the cell active then... I don't know how to refer
to it so it just pulls in its value.


do you mean just in the spreadsheet, or in a macro?

in the spreadsheet:
assuming sheet 1 is called 'FOO', and you named the cell 'BAR', then just
set the cell in sheet 2 to be:

=FOO!BAR


if you are using VB, you can refer to it like this:

Sheets("FOO").Range("BAR").Value



Iain King


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default referring to a range

Bloody marvellous. Thanks a lot!

It was in VB, should have said.

-----Original Message-----
in sheet 2 to equal a named range in sheet 1.
I make the cell active then... I don't know how to refer
to it so it just pulls in its value.


do you mean just in the spreadsheet, or in a macro?

in the spreadsheet:
assuming sheet 1 is called 'FOO', and you named the

cell 'BAR', then just
set the cell in sheet 2 to be:

=FOO!BAR


if you are using VB, you can refer to it like this:

Sheets("FOO").Range("BAR").Value



Iain King


.

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
Referring to first cell in a range FARAZ QURESHI Excel Discussion (Misc queries) 5 December 26th 07 05:14 PM
Formula referring to a dynamic range in a different workbook mr tom Excel Worksheet Functions 6 March 29th 07 08:56 AM
problem referring to Range and Cells Kevin Excel Programming 8 February 28th 04 01:05 AM
Selecting a range without referring to specific cells abxy[_21_] Excel Programming 5 February 9th 04 01:25 AM
Referring to a user-selected range James Mc Excel Programming 2 January 27th 04 07:46 AM


All times are GMT +1. The time now is 08:37 PM.

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"