View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Emily[_2_] Emily[_2_] is offline
external usenet poster
 
Posts: 13
Default return a value from a vba function in another xla

How do I get the value a function returns from another xla
I am trying to use the code
returnedValue = Excel.Application.Run "xlaname.xla!functionname",
functionparameter1, functionparameter2

I keep getting "expected end statement"

If the statement is on its own it runs but I dont get the value it returns,
that is
Excel.Application.Run "xlaname.xla!functionname", functionparameter1,
functionparameter2


I need the value that the function returns. How do I do this with out
making changes to the function.
Regards,
Emily