The code you posted,
... can never succeed because it's comparing an uppercase word to a lowercase one.![]()
Filename = "test.xls" FileExists = False For Each book In Workbooks If UCase(book.Name) = Filename Then
I obviously wasn't even paying attention, Thank you for pointing this out to me, I was so obsessed with the file being open, I didn't even see what was plain before me.
Bookmarks