Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
y y is offline
external usenet poster
 
Posts: 60
Default Control name values.

I defined a Name, called ARNG, that stores a range of cells.
I used the INDIRECT function to define the range and I passed as argument a concatenation of strings.
I would control the value of the Name ARNG.
In practice:

iniz = 5
nf = MID(INFO.DOC(1);FIND("]";INFO.DOC(1))+1;LEN(info.doc(1)))
ARNG =INDIRECT(nf1&"!$D$"&iniz&":$D$"&(iniz+45))

How can I control what value the Name ARNG assumes?
Thanks in advance.
Alex.

  #2   Report Post  
Posted to microsoft.public.excel.programming
y y is offline
external usenet poster
 
Posts: 60
Default Control name values.

I think I'm just looking for an inverse function of INDIRECT.

Have you ever heard about this one?

Alex.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 120
Default Control name values.

Hi Alex,

As I know, I have never heard one similar function. From my view, If you want to implement one, you will need to define the value containing the
reference information. For example, the cell $B$2 has the value "1000(A1)", then you can know A1 contains the address B2 so we can use =interact
($A$1) to retrieve the value "1000(A1)". However, this way, the value referenced will have to contain more info for the reverse checking of Indirect
function.

Please feel free to let me know if you have any further questions.

Best Regards,
Wei-Dong Xu
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.


  #4   Report Post  
Posted to microsoft.public.excel.programming
y y is offline
external usenet poster
 
Posts: 60
Default Control name values.

Thank you Wei-Dong,

I looked for a function INTERACT but I didn't find any function called this way.

Could you be more precise, please?

Thanks, Alex.

Wei-Dong XU [MSFT] wrote:
Hi Alex,

As I know, I have never heard one similar function. From my view, If you want to implement one, you will need to define the value containing the
reference information. For example, the cell $B$2 has the value "1000(A1)", then you can know A1 contains the address B2 so we can use =interact
($A$1) to retrieve the value "1000(A1)". However, this way, the value referenced will have to contain more info for the reverse checking of Indirect
function.


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 120
Default Control name values.

Hi Alex,

Thus far, I don't know there is one such function existing either. My suggestion is below:
1) the value in $A$1 is: "B2" so that indirect can point to $B$2
2) we put the value 1000 in $B$2, so that we can retrieve the value by "=indirect($A$1)"
3) now we want to obtain the $A$1 from the value in $B$2. Since there is no any existing function available, we have to put some info in the $B$2
for the reverse locating. I'd suggest we can put (A1) after the value 1000. This way, we will know the value in B2 is 1000 and this cell is referenced
by A1.

Please feel free to let me know if you have any question.

Best Regards,
Wei-Dong Xu
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.




  #6   Report Post  
Posted to microsoft.public.excel.programming
y y is offline
external usenet poster
 
Posts: 60
Default Control name values.

Hi Wei-Dong I resolved this way.

If, as told at the beginning of this thread, we have

iniz = 5
nf = MID(INFO.DOC(1);FIND("]";INFO.DOC(1))+1;LEN(info.doc(1)))
ARNG =INDIRECT(nf1&"!$D$"&iniz&":$D$"&(iniz+45))

Putting in a cell the following code

=INDEX(ADDRESS(ROW(ARNG);COLUMN(ARNG))&":"&
ADDRESS(ROW(ARNG)+ROWS(ARNG)-1;COLUMN(ARNG)
+COLUMNS(ARNG)-1);1)

it will return

$D$5:$D$50

i.e. what I want

Thanks, Alex.

Wei-Dong XU [MSFT] wrote:
Hi Alex,

Thus far, I don't know there is one such function existing either. My suggestion is below:
1) the value in $A$1 is: "B2" so that indirect can point to $B$2
2) we put the value 1000 in $B$2, so that we can retrieve the value by "=indirect($A$1)"
3) now we want to obtain the $A$1 from the value in $B$2. Since there is no any existing function available, we have to put some info in the $B$2
for the reverse locating. I'd suggest we can put (A1) after the value 1000. This way, we will know the value in B2 is 1000 and this cell is referenced
by A1.

Please feel free to let me know if you have any question.

Best Regards,
Wei-Dong Xu
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.


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
how do I find out property values for each control object? Bob Allen[_2_] Excel Discussion (Misc queries) 3 July 30th 09 11:23 PM
2007 Form Control/ActiveX Control font difference Nikko963 Excel Discussion (Misc queries) 0 April 15th 09 04:21 PM
How to use values stored in a combo box control? Arlen Excel Discussion (Misc queries) 4 July 25th 08 09:34 PM
Difference between a Forms Control verus Active-X Control funGT350 Excel Discussion (Misc queries) 6 May 6th 08 11:20 PM
Passing variable values to userform control KJ-clueless Excel Discussion (Misc queries) 2 November 27th 07 10:51 PM


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