Speeding up the insertion of formulas via xlcFormula via Excel-DNA -
i using excel-dna insert formulas 40k rows * 10 columns, , quite slow.
xlcall.excel(xlcall.xlcformula, myformula, new excelreference(row, row, column, column));
i managed improve dramatically temporarily disabling recalculation of cells on update (xlcall.excel(xlcall.xlccalculation, 3);
), ideally find way put entire column of formulas excel in single operation (i assuming improve speed).
i tried passing object[,]
call xlcformula:
xlcall.excel(xlcall.xlcformula, excelformulas, new excelreference(1, lastrow, columnnumber, columnnumber));
but put formulas single field (separated semicolons). there way trying do, or wasting time on impossible?
you try screen updating switched off xlcall.excel(xlcall.xlcecho, false)
.
what using clipboard? copy formulae (with tabs between columns) clipboard, , paste @ once excel sheet. fast excel process formula strings.
Comments
Post a Comment