Ok, this I am fairly sure can be done, in fact I was sure I had done it before.
Using index, I know passing 0 as the row or column num returns the entire row or column.
So I have an array containing worksheets, and an associated column number:
So now I think I should have a nice array with a list of worksheet 'objects' in the first column, and column numbers in the second column.Please Login or Register to view this content.
So now I want to use a for...each... loop to step through the worksheets, but I don't seem to be able to.
I have this following the code snippet above:
Trying to return 'every row of the first column' with rownum=0, and columnnum=1.Please Login or Register to view this content.
However I get the error;
I've then even tried just access the 'column numbers' that I placed in the second column of the array, but I get the same errorMethod 'Index' of object 'WorkSheetFunction' failed
Ideas please...
Bookmarks