Hello all,
The following code gives a runtime error and I can't figure out why.
I've tried other [test] formulas instead and they all worked.
When I enter the Formula manually in the Z12 it workes fine.
The following code gives a runtime error and I can't figure out why.
I've tried other [test] formulas instead and they all worked.
Code:
Range("Z12").FormulaArray = "=IF(ROWS(R12:R)>SUM(--('Matrix Heftruck'!R2C44:R500C44>=R3C20)*('Matrix Heftruck'!R2C44:R500C44<=R3C21)),"""",INDEX('Matrix Heftruck'!R1:R500,--RIGHT(SMALL(IF(('Matrix Heftruck'!R2C44:R500C44>=R3C20)*('Matrix Heftruck'!R2C44:R500C44<=R3C21),--('Matrix Heftruck'!R2C44:R500C44 & RIGHT(""00000"" &ROW(R2C26:R491C26),5)),""""),ROWS(R12:R)),5),COLUMNS(C26:C)))"
When I enter the Formula manually in the Z12 it workes fine.