?Application.Evaluate("max(len(A1:X20))")

  • Thread starter Thread starter Tim Childs
  • Start date Start date
T

Tim Childs

I once saw the following code on the ng, which works fine of course!
?Application.Evaluate("max(len(A1:X20))")



When I try to use average (using worksheetfunction)instead of max, I cannot
get it to work. Can someone provide the syntax or an explanation, please?

Thanks

Tim
 
FWIW, I've found EVALUATE to be "flaky". One day it works, the next day it
doesn't. You can use most worksheet functions via this syntax

? Application.Average(Range("A1:X20"))
 
Hi

Thanks for these responses

Tim



Myrna Larson said:
FWIW, I've found EVALUATE to be "flaky". One day it works, the next day it
doesn't. You can use most worksheet functions via this syntax

? Application.Average(Range("A1:X20"))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top