View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Ryan Poth[_2_] Ryan Poth[_2_] is offline
external usenet poster
 
Posts: 18
Default Determining whether function called by Excel or VBA

Tried that one too. Unfortunately, it returns information
about where VBA was ultimately called from and, since all
my functions are ultimately called from Excel, that
doesn't work. That is, unless there's more to the Caller
property than I'm seeing.

Any other ideas?

-----Original Message-----
Checkout the Caller property.

Alan Beban

Ryan Poth wrote:
Another one I cannot seem to figure out..

I'm trying to determine within a function whether it

has
been called directly from Excel or from another VBA
sub/function. I've tried looking for ways to access the
call stack, but have had no luck.

Does anybody have any clues on this one?

Thanks in advance,
Ryan


.