+ Reply to Thread
Results 1 to 6 of 6

(Main Question Answered) Check File Open with random Path

Hybrid View

  1. #1
    Registered User
    Join Date
    07-02-2008
    Location
    Fort Worth, TX
    Posts
    99
    The code you posted,
        Filename = "test.xls"
         FileExists = False
    
         For Each book In Workbooks
             If UCase(book.Name) = Filename Then
    ... can never succeed because it's comparing an uppercase word to a lowercase one.

    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.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    Do you mind if I utilize your function and change the name to incorporate it into the error handler format i was using already?
    Feel free. You never have to ask that question here.
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1