Hello Taktiker,
Here is the corrected search function. I know it is a pain to include all the find arguments but it needs to be done. The reason is most of the arguments retain their settings between calls. Since these arguments are system level and not VBA level, you can never be certain what searchs have been performed before yours.
Whren looking for Dates, the argument LookIn should be set to xlFormulas instead of xlValues. Some date functions are volatile an are compute when called. These will be missed if the search is set only to xlValues. The other problem with matching dates is a Date has a time component also. Generally, you want to ignore the time portion in the search. This is accomplished by setting the LookAt argument to xlPart instead of xlWhole.
Bookmarks