When testing a subroutine, using exactly the same code, sometimes the .Find function works and sometimes it doesn't. Once it's stopped working it refuses to work again, but may have been fine numerous times beforehand. Advice as to what could be wrong would be much appreciated—I don't want to have to resort to the "For Each c in Range" method of finding what I'm looking for (it's bulletproof but much slower, of course).
In the code excerpt below the first Finds (and two similar others) work perfectly every time—they are used to find and set the ranges (rWk and rMon) to be searched. With the troublesome Find (searching for data in rWk), commenting out these initial Finds makes no difference, neither does adding variants (LookIn, LookAt, etc) as the experts say we should. The troublesome Find is simply looking for integers <=31 in a range of no more than 12 cells, but needs to do so hundreds of times during the routine so Find would be much more efficient.
Any help or advice much appreciated.
Please Login or Register to view this content.
Bookmarks