Array Fornula via VBA - Stops macro Error 1004 Unable to set FormulaArry prop of Range Class

ElvisHess

Board Regular
Joined
May 4, 2006
Messages
150
Good Afternoon,

I have added many Arrays in my spreadsheet in the past, But am stumped on why this line is stopping my script. I works when I manually type it.

ActiveCell.FormulaArray = "=SUM(IF(FREQUENCY(IF(Default!$B$2:$B$2000=""ATP Create ECI"",IF(Default!$D$2:$D$2000<>"",MATCH(Default!$D$2:$D$2000,Default!$D$2:$D$2000,0))),ROW(Default!$D$2:$D$2000)-ROW(Default!$D$2)+1),1))"

Am trying to add this on a TAB named people.

Please Advise if you see my error

Thank YOU!!
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Try

ActiveCell.FormulaArray = "=SUM(IF(FREQUENCY(IF(Default!$B$2:$B$2000=""ATP Create ECI"",IF(Default!$D$2:$D$2000<>"""",MATCH(Default!$D$2:$D$2000,Default!$D$2:$D$2000,0))),ROW(Default!$D$2:$D$2000)-ROW(Default!$D$2)+1),1))"

M.
 
Upvote 0

Forum statistics

Threads
1,216,496
Messages
6,130,982
Members
449,611
Latest member
Bushra

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