Unless I'm misreading your code, I believe that you have a mistaken understanding of the SELECT CASE function.
SELECT CASE XXX treats XXX as the argument, and the CASE is treated as the validation. In this example, SELECT CASE strPathFile seems to be a text entry. In that syntax, each CASE argument checks if the result of your formula is strPathFile. However, (again, unless I'm misreading the code), each of the CASE formula arguments returns a TRUE/FALSE.
Try chaning the first line of the SELECT CASE to
instead of
See if that works. If not, post a sample workbook with dummy data (in xls format please)
Bookmarks