+ Reply to Thread
Results 1 to 2 of 2

Excel VB File Search File System Object Behavior.

  1. #1
    Registered User
    Join Date
    10-25-2012
    Location
    Washington DC
    MS-Off Ver
    For MS 365
    Posts
    54

    Excel VB File Search File System Object Behavior.

    I found a great piece of code that searches for a file across a folder and all subfolders and it works very well, generally.

    However, when I search for files in "C:\Program Files (x86)" (to which I do NOT have write rights) or even across a shared network drive to which I DO have write rights, I get empty results. The code seems to be searching but it returns "0" files found, even though I am positive the path and file name are correct. As stated, it works fine on folders that are not admin-only.

    Does the filesystemobject not work on folders that the user doesn't have write rights?

    Thanks.

  2. #2
    Forum Contributor Jack7774's Avatar
    Join Date
    08-31-2012
    Location
    Georgia, US
    MS-Off Ver
    Excel 2010
    Posts
    576

    Re: Excel VB File Search File System Object Behavior.

    I am new here but I have ran into this before and I believe you are correct. If you do not have rights to the folder then you will not be able to gain access to see or open anything in the folder by simply using the search function either.

+ 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