View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Bob Phillips[_6_] Bob Phillips[_6_] is offline
external usenet poster
 
Posts: 11,272
Default Calling Excel array functions in VBA

I thought this, but it just gives me an error 2015.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Tom Ogilvy" wrote in message
...
varr = Evaluate("SMALL(A1:10,{1,2,3})")

--
Regards,
Tom Ogilvy

"JM" wrote in message
...
Is it possible to call an Excel array function in VBA?

For instance, in a worksheet, one can execute
{=SMALL(A1:10,{1,2,3})}

Can a similar call be made in a VBA module? If so, what
is the syntax and how is the result returned?