I keep getting the #VALUE! error when using this formula in my workbook and it is driving me crazy because I can't figure out why it's not working. Any thoughts?
I inserted a breakpoint and none of the variables have values. Since firstVal and lastVal depend on firstCell and lastCell parsing the range info correctly, there must be something wrong with my use of ".Cells(x,y)", but it doesn't seem like I am using it wrong. It has to be something stupid that I'm overlooking.Please Login or Register to view this content.
P.S. I tried simplifying it like below, but still no luck:
Please Login or Register to view this content.
Bookmarks