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

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
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,224,774
Messages
6,180,875
Members
453,003
Latest member
SalihZekiKoni

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