Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default "Indirect" reference to a cell in a code: how to do it?


Hi all,

I am trying to build a line of code with the equivalent of the norma
INDIRECT function -for example INDIRECT("a1") - how can i do it?

Basically, whats the correct way to codify the INDIRECT of Range("a1"
in a line of code?


Many thanks

B

--
bondcras
-----------------------------------------------------------------------
bondcrash's Profile: http://www.excelforum.com/member.php...fo&userid=2099
View this thread: http://www.excelforum.com/showthread.php?threadid=46822

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default "Indirect" reference to a cell in a code: how to do it?

Range can take a string value, so it can be used the same as indirect, as long as the string is a
valid address of a cell or range of cells. So if you wanted the same as

=INDIRECT("a1")

then

=Range("A1").Value

or, if the text "A1" is in cell B1, for example

=Range(Range("B1").Value).Value

HTH,
Bernie
MS Excel MVP


"bondcrash" wrote in message
...

Hi all,

I am trying to build a line of code with the equivalent of the normal
INDIRECT function -for example INDIRECT("a1") - how can i do it?

Basically, whats the correct way to codify the INDIRECT of Range("a1")
in a line of code?


Many thanks

BC


--
bondcrash
------------------------------------------------------------------------
bondcrash's Profile: http://www.excelforum.com/member.php...o&userid=20997
View this thread: http://www.excelforum.com/showthread...hreadid=468226



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
"indirect" cell ref change.... ORLANDO VAZQUEZ[_2_] Excel Discussion (Misc queries) 2 November 3rd 09 07:49 PM
"indirect" formula reference ORLANDO VAZQUEZ[_2_] Excel Discussion (Misc queries) 11 October 2nd 09 01:52 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
Can you "duplicate" "copy" listboxes and code to multiple cells? HotRod Excel Programming 1 September 1st 04 05:03 PM
Excel VBA - go to worksheet "name" based on a cell reference ="Name" james007 Excel Programming 2 July 8th 04 11:04 PM


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