Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
AC AC is offline
external usenet poster
 
Posts: 7
Default formulaArray limit of 255 chars - what workarounds exist?

Hi

We have run into what appears to be a well known issue: we have array
formulas much longer than 255 chars.

These formulas are not designed/supplied by us, all we know is that
they work. What is happening is we have code that munges the array
formulas temporarily into a regular text string, some other code (not
controlled by us) then deletes worksheets and imports new data and
does a whole lot of other stuff, and we then 'unmunge' the formulas
back again once the worksheets are reinstated.
Without doing this the formulas turn into #REF when the other code
deletes the worksheets (we know the worksheets are coming back again
but once the #REF appears its too late).

Generally the array formulas are less than 255 chars so they work OK,
however we have just started running into issues where they are longer
than 255 chars.

Is there a known work around for this problem? Im sure we will run
into this issue again for future projects so would like any known
generalised workarounds rather than suggestions on how to change what
we are currently doing (not that we dont appreciate suggestions - its
just that I want to learn a generalised fix )

I have seen one suggestion which says to add it as a normal formula
and then use send keys to 'ctl-shift-enter'. Are there better fixes
out there?

Thanks in advance
AndyC
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default formulaArray limit of 255 chars - what workarounds exist?


If I were using VBA...

Take a look at Dick Kusleika's site:
http://www.dailydoseofexcel.com/arch...rmulas-in-vba/

It's a technique to workaround that .formulaarray length limit.

AC wrote:

Hi

We have run into what appears to be a well known issue: we have array
formulas much longer than 255 chars.

These formulas are not designed/supplied by us, all we know is that
they work. What is happening is we have code that munges the array
formulas temporarily into a regular text string, some other code (not
controlled by us) then deletes worksheets and imports new data and
does a whole lot of other stuff, and we then 'unmunge' the formulas
back again once the worksheets are reinstated.
Without doing this the formulas turn into #REF when the other code
deletes the worksheets (we know the worksheets are coming back again
but once the #REF appears its too late).

Generally the array formulas are less than 255 chars so they work OK,
however we have just started running into issues where they are longer
than 255 chars.

Is there a known work around for this problem? Im sure we will run
into this issue again for future projects so would like any known
generalised workarounds rather than suggestions on how to change what
we are currently doing (not that we dont appreciate suggestions - its
just that I want to learn a generalised fix )

I have seen one suggestion which says to add it as a normal formula
and then use send keys to 'ctl-shift-enter'. Are there better fixes
out there?

Thanks in advance
AndyC


--

Dave Peterson
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
How to truncate list of meaningful words greater than 15 chars tomeaningful words of 8 chars. Babloo Excel Worksheet Functions 4 April 29th 11 11:27 PM
limit # of chars in a cell soonic Excel Discussion (Misc queries) 1 March 22nd 10 11:21 AM
Building a FormulaArray using VBA - Size Limit? PCLIVE Excel Programming 1 August 2nd 07 08:44 PM
Autosize bug workarounds in Excel 2007 shape textframes Anthony Berglas Excel Programming 0 April 25th 07 07:36 AM
.PageSetup: Any recent workarounds for the speed problem? (PeteCresswell) Excel Programming 2 November 27th 06 09:57 PM


All times are GMT +1. The time now is 09:21 AM.

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"