I've been looking for an answer to this for a little while now. I'm referencing the last answer (by control freak) to this question Excel VBA - How to Redim a 2D array? in my compiling problems.
Dim arrMachineVision(10, 4)
arrMachineVision = ReDimPreserve(arrMachineVision, machineVisionCount - 1, 4)
Above is my code line that won't compile and it is telling me that this can't be assigned to the array. I know in Java you have to make a temporary array and then copy values over and then reassign the original array to the temp array and then set that array null. This is what I thought the function was doing but then after it is done it can't be assigned to the original array. I'm wondering what I'm doing wrong.
The reason I'm going through this function is because I need to resize the first dimension in my 2d array and the normal redim won't do that for me.