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

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
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,101
Messages
6,128,835
Members
449,471
Latest member
lachbee

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