Nilem,
this code works beautifully for examples where the variable x is less than about 22000 cells in length, (y is at 6320 cells), anything greater than that and I am getting a Run-time error '1004': Application-defined or object-defined error. I am assuming this is a problem with array size? does excel have a maximum array size that I am hitting? I have modified the code slightly to resize the array as it does not need to factor the x and y sizes, rather just y * the longest repetition of x (which is calculated in cell a1)
code:
Bookmarks