Long array formulas in VBA...

Matty

Well-known Member
Joined
Feb 17, 2007
Messages
3,717
Hi,

I understand there is a restriction in terms of the length of array formulas that can be used when implementing them via VBA. But what options are available to me to circumvent this shortfall?

I have seen a solution in **** Kusleika's blog, whereby the formula is broken down into smaller sections for it to work, but is this really my only option?

Any advice welcome...

Thanks,

Matty
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Matty

Yes, either using Replace as in the Daily Dose Blog or Substitute.

Rather than use the "X_X_X" I tend to put a meaningful name.

Good luck
 
Upvote 0
Thanks ukmikeb.

The particular formula I have is a bit of a monster and I need to split it up into more than two parts. Any idea how I could do this?

I've had a play, but I just keep getting the 'Unable to set the FormulaArray property of the Range class' message with whatever I try, which isn't very helpful at all...

Thanks,

Matty
 
Upvote 0
Matt

Post it on here.

I'll see what I can do.

If I can't help I'm sure someone else will.
 
Upvote 0
It depends on the formula. If there's a repeating section then you could use a name to represent it, thus shortening the formula.

You might also be able to improve the formula itself.

Why not post the formula (formula might be an easier starting point than the code itself) so we can have a try?
 
Upvote 0
Hi Chaps,

Don't worry, this is now sorted. I've simplified the formula by using a helper Column which means it no longer needs array entry.

Thanks for your interest.

Matty
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,286
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top