Sorry for double-posting, now I've run into another problem. Your way of reading and writing to/from an array works like a charm when I try it small-scale in a new workbook, but when I try to implement it into my actual code I get a "run-time error '1004': application-defined or object-defined error". Here's a copy of my code:
Here I have removed the irrelevant parts of the code. r is global and is the number of rows in the other workbook, and c is the number of columns. array is a global Variant as it is used in many other subs that perform calculations. wbpath is the path to the workbook. The dimensions are (r,c)=(98,69) if that is relevant.
Cheers,
Samuel
Bookmarks