Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Sheet referencing in a cell

I had an earlier post and thought I had an answer. I am trying to reference a
sheet in a workbook in a cell from a different sheet using the sheet
position for the reference. i.e. =sheet(1)A20
i received a reply that =INDIRECT(SHEETNAME(1) & "A3") would do this for me.
Unless is used it incorrectly, I get a #value when using the Indirect
function as shown. I am using Office 2003, not 2007 if that makes a
difference.
Thanks in advance.
--
jwm
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Sheet referencing in a cell

You need to install the UDF before you can use it in the worksheet:


UDFs are very easy to install and use:

1. ALT-F11 brings up the VBE window
2. ALT-I
ALT-M opens a fresh module
3. paste the stuff in and close the VBE window

If you save the workbook, the UDF will be saved with it.

To use the UDF from the normal Excel window, just enter it like a normal
Excel Function

To remove the UDF:

1. bring up the VBE window as above
2. clear the code out
3. close the VBE window

To learn more about UDFs, see:

http://www.cpearson.com/excel/Writin...ionsInVBA.aspx


--
Gary''s Student - gsnu200777


"velvetlady" wrote:

I had an earlier post and thought I had an answer. I am trying to reference a
sheet in a workbook in a cell from a different sheet using the sheet
position for the reference. i.e. =sheet(1)A20
i received a reply that =INDIRECT(SHEETNAME(1) & "A3") would do this for me.
Unless is used it incorrectly, I get a #value when using the Indirect
function as shown. I am using Office 2003, not 2007 if that makes a
difference.
Thanks in advance.
--
jwm

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
Referencing every 5th cell in another sheet [email protected] Excel Worksheet Functions 4 June 20th 07 02:49 PM
referencing to a sheet that it`s name is stored on a cell [email protected] Excel Worksheet Functions 7 November 27th 06 05:59 PM
odd behavior when referencing a cell on another sheet Dave F Excel Discussion (Misc queries) 3 October 12th 06 03:16 PM
referencing Excel sheet name in cell Graham Tritton Excel Worksheet Functions 1 October 14th 05 06:53 AM
referencing a sheet named in a cell then using data from that sheet gbeard Excel Worksheet Functions 4 April 15th 05 08:42 AM


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