Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hey
I have this string that is programatically inserted into a cell as an array formula: =1*MID(A2,MATCH(FALSE,ISERROR(1*MID(A2,ROW(INDIREC T("1:"&LEN(A2))), 1)), 0),LEN(A2)-SUM(1*ISERROR(1*MID(A2,ROW(INDIRECT("1:"&LEN(A2))) ,1)))) It returns a valid result when inserted as an array into a cell. But I would like to be able to evaluate this formula and get the result in VBA before I insert it into a cell. Bob Phillips posted the following yesterday but its resulting in runtime error 13 Type Mismatch: MsgBox Activesheet.Evaluate( _ "1*MID(A2,MATCH(FALSE,ISERROR(1*MID(A2,ROW(INDIREC T(" & _ """1:""&LEN(A2))),1)),0),LEN(A2)-SUM(1*ISERROR(1*MID(A2,ROW(" & _ "INDIRECT(""1:""&LEN(A2))),1))))") Thanks Todd |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Inserting Formula into Array | Excel Discussion (Misc queries) | |||
How to use/evaluate another Cell Formula in R1C1 style | Excel Programming | |||
Macro to evaluate a cell and replace one part of the formula | Excel Programming | |||
I Need a formula to evaluate a cell with + or - values | Excel Worksheet Functions | |||
Array formula returning #N/A when inserting new rows. | Excel Programming |