PC Review


Reply
Thread Tools Rate Thread

Building a FormulaArray using VBA - Size Limit?

 
 
PCLIVE
Guest
Posts: n/a
 
      2nd Aug 2007
Is there a size limit or character lenght restriction when trying to apply a
FormulaArray using VBA? I have this Array formula that I can apply manually
using Ctrl-Shift-Enter. That works fine. However, I can build that array
formula using VBA. I've tried recording a macro and enter the cell with the
formula and just pressing Ctrl-Shift-Enter. I get a message saying it can't
record. Keep in mind that I can apply the same text in the array formula
using:

Range("K24").Formula "{=my formula text}

However, obviously that will not create an array formula.

Any ideas.
Thanks,
Paul


 
Reply With Quote
 
 
 
 
=?Utf-8?B?VG9tIE9naWx2eQ==?=
Guest
Posts: n/a
 
      2nd Aug 2007
Range("K24").FormulaArray = "=Max(if(A1:A10=5,B1:B10))"

Yes, I believe the string can't be more than about 255 characters when using
FormulaArray.

--
Regards,
Tom Ogilvy


"PCLIVE" wrote:

> Is there a size limit or character lenght restriction when trying to apply a
> FormulaArray using VBA? I have this Array formula that I can apply manually
> using Ctrl-Shift-Enter. That works fine. However, I can build that array
> formula using VBA. I've tried recording a macro and enter the cell with the
> formula and just pressing Ctrl-Shift-Enter. I get a message saying it can't
> record. Keep in mind that I can apply the same text in the array formula
> using:
>
> Range("K24").Formula "{=my formula text}
>
> However, obviously that will not create an array formula.
>
> Any ideas.
> Thanks,
> Paul
>
>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
formulaArray limit of 255 chars - what workarounds exist? AC Microsoft Excel Programming 1 8th Jul 2009 11:42 PM
What is the size limit & number of PSTs limit for OL 2003? Kevin Microsoft Outlook Discussion 1 30th Oct 2008 12:59 PM
Building a Macro for different size trend-Charts?? Anthony0247 Microsoft Excel Programming 3 18th Apr 2008 11:18 PM
Increasing the size of the Limit profile size GPO object past 30MB =?Utf-8?B?TmllbHMgamVuc2Vu?= Microsoft Windows 2000 Active Directory 2 24th Apr 2007 10:44 AM
Cell size? Or size limit for Text data type? =?Utf-8?B?Q0NsZW0=?= Microsoft Excel Misc 0 21st Apr 2006 04:09 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:47 AM.