Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 553
Default Interpretation of a piece of code

Can any friend explain to me what is the following part of code means:
Application.Caller.Parent.Evaluate
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Interpretation of a piece of code

I bet that this was used in a UDF.

If I'm right...
Application.caller would be the cell that held the UDF.
application.caller.parent would be the worksheet that held that cell.

application.caller.parent.evaluate means to use that worksheet for any
unqualified ranges in the string that is being evaluated.

msgbox worksheets("sheet1").evaluate("a1+b1")
and
msgbox worksheets("sheet2").evaluate("a1+b1")

would use A1 and B1 from Sheet1 and Sheet2 (respectively)

FARAZ QURESHI wrote:

Can any friend explain to me what is the following part of code means:
Application.Caller.Parent.Evaluate


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Interpretation of a piece of code


"Dave Peterson" wrote in message
...
I bet that this was used in a UDF.

If I'm right...


It was. It was something I gave him.


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Interpretation of a piece of code

It looked like your typing <vbg.

Bob Phillips wrote:

"Dave Peterson" wrote in message
...
I bet that this was used in a UDF.

If I'm right...


It was. It was something I gave him.


--

Dave Peterson
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
What is wrong with this vba piece of code? Jo[_2_] Excel Discussion (Misc queries) 4 October 4th 07 05:01 PM
Interpretation for: =INDEX(MATCH(1 <--one [email protected] Excel Discussion (Misc queries) 3 August 24th 07 08:40 AM
Interpretation M&M[_2_] Excel Discussion (Misc queries) 2 July 14th 07 12:00 PM
Interpretation of T test results Chris Excel Worksheet Functions 0 January 29th 07 05:39 PM
chitest and interpretation of the result Christine Excel Worksheet Functions 1 May 5th 05 02:00 AM


All times are GMT +1. The time now is 05:28 PM.

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"