Excel 5&7 have a very slow method of writing back to the sheet, so someone came up with a neat workaround. Suppose your function needs 5 parameters, 4 of which are set at the top of the sheet, and only one of which is set by the calling cell.This is 5-10 times faster than setting a range equal to a VBA array. Add Name:="wstempdata", Refers To R1C1:=The Array With The Range . You can cut down the calculation load, by loading the 4 parameters the first time only, by putting a test in your function like "If A=0 Then Initialise", to call an initialisation routine.
The following file formats have feature and formatting differences as described.
When working in VBA, the trick is to read/write data in chunks. Then we read the next batch of 125 records, and so on, until we hit empty cells.
We had a real life example, where we needed to read in 1000 records off a worksheet, each of 20 cells, do some calculations, and write back 14 cells at the end of each record. So far we've only made 8 (input) hits on the worksheet.
A number of features on this site will not work properly with this browser.
Please consider upgrading to the latest version of your currently used browser.