Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
application.caller
Thanks.
Is there a reliable way to get a value of calling cell? So the UDF can return that value under some circumstances. Cheers, Alex. "Tom Ogilvy" wrote: ? cvErr(xlErrRef) Error 2023 this is the same as the #Ref error I doubt it is caused by application caller, but more likely by the argument you are furnishing to the function. -- Regards, Tom Ogilvy "Alexander" wrote: Hi, Application.Caller in my UDF function is always Error 2023 (called due to the cell change). Why? Cheers, Alex. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
application.caller
set rng = Application.Caller
v = rng.Value will give you the value of the cell containing the formula (which is considered the calling cell). -- Regards, Tom Ogilvy "Alexander" wrote in message ... Thanks. Is there a reliable way to get a value of calling cell? So the UDF can return that value under some circumstances. Cheers, Alex. "Tom Ogilvy" wrote: ? cvErr(xlErrRef) Error 2023 this is the same as the #Ref error I doubt it is caused by application caller, but more likely by the argument you are furnishing to the function. -- Regards, Tom Ogilvy "Alexander" wrote: Hi, Application.Caller in my UDF function is always Error 2023 (called due to the cell change). Why? Cheers, Alex. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
application.caller
That results in a circular reference.
-- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com (email address is on the web site) "Tom Ogilvy" wrote in message ... set rng = Application.Caller v = rng.Value will give you the value of the cell containing the formula (which is considered the calling cell). -- Regards, Tom Ogilvy "Alexander" wrote in message ... Thanks. Is there a reliable way to get a value of calling cell? So the UDF can return that value under some circumstances. Cheers, Alex. "Tom Ogilvy" wrote: ? cvErr(xlErrRef) Error 2023 this is the same as the #Ref error I doubt it is caused by application caller, but more likely by the argument you are furnishing to the function. -- Regards, Tom Ogilvy "Alexander" wrote: Hi, Application.Caller in my UDF function is always Error 2023 (called due to the cell change). Why? Cheers, Alex. |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
application.caller
Public Function Test()
Dim rng As Range Dim v As Variant Set rng = Application.Caller v = rng.Text Test = "A" & v End Function doesn't. -- regards, Tom Ogilvy "Chip Pearson" wrote in message ... That results in a circular reference. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com (email address is on the web site) "Tom Ogilvy" wrote in message ... set rng = Application.Caller v = rng.Value will give you the value of the cell containing the formula (which is considered the calling cell). -- Regards, Tom Ogilvy "Alexander" wrote in message ... Thanks. Is there a reliable way to get a value of calling cell? So the UDF can return that value under some circumstances. Cheers, Alex. "Tom Ogilvy" wrote: ? cvErr(xlErrRef) Error 2023 this is the same as the #Ref error I doubt it is caused by application caller, but more likely by the argument you are furnishing to the function. -- Regards, Tom Ogilvy "Alexander" wrote: Hi, Application.Caller in my UDF function is always Error 2023 (called due to the cell change). Why? Cheers, Alex. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
application caller | Excel Programming | |||
Row = Application.Caller.Row | Excel Worksheet Functions | |||
Application.Caller | Excel Programming | |||
application.caller | Excel Programming | |||
DDE and application.caller help | Excel Programming |