Thanks for the reply! The array gets populated with the code below. I have checked the array and it does have the values I need in it.
Something I just noticed is that if I use actual numbers in the ".cells(4,4) part from the code in my first post, it seems to work but when I use variables it doesnt. I have done a msgbox right before the IF statement to check to make sure that the variables have the correct values and they do. Just for giggles I created two dummy variables and gave them a value of like 8 and 10 and tried using those in the expression and they too failed. When used in ANY statement such as IF, msgbox etc.... the page stops. I am new to vba macro coding so this is new to me... I also tried ISEMPTY() with the same results.
The code just places row numbers into the array.
PS: I can send you an example if you tell me how to do so using this website.
thanks!
Bookmarks