I use 7 CSE Formulas on a large spreadsheet (one at a time though). When I type them in manually they work fine. However, they are very long so I wanted a MACRO to type them for me. When I try to record this with a MACRO it won't work. Does anyone know if CSE formulas can be used with MACROs or VBA code.
My CSE Formula looks like this:
Range("C2").Select
Selection.FormulaArray = _
"=IF(COUNTIF($A$2:$A2,$A2)=COUNTIF(LIN,$A2), TRIM(ACONCAT(IF(FREQUENCY(IF(EIC<>"",IF(LIN=$A2, MATCH(EIC,EIC,0))),IVEC),""&EIC,""))),"")"
The MACRO changes the cell names to R1C1 format and the code won't appear in the cell (C2) when I stop recording and try to use it. Is there a proper format for using CSE formulas in VBA???
My CSE Formula looks like this:
Range("C2").Select
Selection.FormulaArray = _
"=IF(COUNTIF($A$2:$A2,$A2)=COUNTIF(LIN,$A2), TRIM(ACONCAT(IF(FREQUENCY(IF(EIC<>"",IF(LIN=$A2, MATCH(EIC,EIC,0))),IVEC),""&EIC,""))),"")"
The MACRO changes the cell names to R1C1 format and the code won't appear in the cell (C2) when I stop recording and try to use it. Is there a proper format for using CSE formulas in VBA???