October 2nd, 2002, 5:40 pm
BillG,Of course, there is a way to convert the content of a rectangular range of cells into an array of, say, doubles. You can do it directly in your VBA code. But you've got a 99% chance that your C++ program will do it faster. Because Excel will anyway covert VARIANT values from the cells of the range into doubles or whatever you want.Moreover, if you pass a Range object into your code, you'll have to use automation as well as COM for every access operation to this object, which will in turn be much slower than any of the methods to pass an array of data into your dll.Regards,Rector