Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am getting a Run Time Error '13' Type Mismatch Error on the following line
of code: Var1 = Application.WorksheetFunction.Average(Array1) The Array is filled with data from the cells in the spreadsheet while in a For next loop. It populates the arrray after a Calculate. Whenever I increase the loop 65,000 runs, I get the error on this line of code. The Array is dimensioned as a Variant. Is a Type Mismatch of this kind occuring becuase I am loading a spreadsheet error (i.e. DIV/0 etc) into the array and the Average function fails? It does not seem to fail on runs less than 65000. How can I check the contents of the array to see what would cause the Average function to fail? Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Reasons for "Run-time error '13':Type mismatch"? | Excel Programming | |||
Error Handling to mitigate "Run Time Erorr 13 Type Mismatch" | Excel Programming | |||
Run-time Error "13" - File Type Mismatch | Excel Programming | |||
Help with Run-time error: "Type Mismatch" | Excel Programming | |||
"FIND" generates "Type mismatch" error | Excel Programming |