Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default VBA Array Formulae

Hi
How can I write an array formula in VBA? I know how to put an array formula
into a worksheet but I'd like to get the result without having to do that.

More specifically I'd like to get the result from the following formula and
assign it to a variable without writing it to a cell

{=max(len(a1:a1000))}

TIA
;-)


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default VBA Array Formulae

evaluate("=MAX(LEN(A1:A1000))")

--

HTH

RP

"Loomah" <bellm AT globalnet dot co dot uk wrote in message
...
Hi
How can I write an array formula in VBA? I know how to put an array

formula
into a worksheet but I'd like to get the result without having to do that.

More specifically I'd like to get the result from the following formula

and
assign it to a variable without writing it to a cell

{=max(len(a1:a1000))}

TIA
;-)




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 863
Default VBA Array Formulae

Just a caveat: In the past, I found evaluating array formulas in VBA to be
"flaky". One day the formula will work, the next day it doesn't, though there
have been no changes to the code in the interim. I haven't tried them in the
last couple of versions, so the problem may have been remedied.

On Wed, 29 Sep 2004 10:32:12 +0100, "Loomah" <bellm AT globalnet dot co dot
uk wrote:

Hi
How can I write an array formula in VBA? I know how to put an array formula
into a worksheet but I'd like to get the result without having to do that.

More specifically I'd like to get the result from the following formula and
assign it to a variable without writing it to a cell

{=max(len(a1:a1000))}

TIA
;-)


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Array formulae do not recalculate Thanks Excel Worksheet Functions 3 April 4th 23 11:41 AM
Array Formulae Chris waller Excel Discussion (Misc queries) 3 February 12th 09 11:09 PM
IF statement with 2 array formulae nathan_savidge Excel Worksheet Functions 1 April 22nd 08 02:47 PM
Using wildcards in Array formulae John Excel Discussion (Misc queries) 2 August 17th 07 03:57 PM
OFFSET and array formulae Wazooli Excel Discussion (Misc queries) 3 January 20th 05 12:09 AM


All times are GMT +1. The time now is 11:01 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"