Consulting

Results 1 to 4 of 4

Thread: File Access

  1. #1

    File Access

    Hi all,

    We do have a folder having user access restriction. Whether it is possible to read text file from the folder having access restriction through vba code.

    Thank you in advance

    Regards
    Rema

  2. #2
    VBAX Contributor
    Joined
    May 2008
    Location
    bangalore
    Posts
    199
    Location
    Set sBook = Workbooks.Open (Foldername) (fName, , , , "xxxx") this might help you

    or you may ask user to select particular file from network

    you may try something like this
    OpenMyFile = Application. GetOpenFilename(FileFilter:="Excel Files (*.xls), *.xls", Title:="** File Name here **")
    Last edited by shamsam1; 08-25-2008 at 03:52 AM.

  3. #3
    Thank you for your reply.

    I want to read data from text file in a folder which is permission denied.is there any way to access file having user access restriction

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Surely, if permission is denied it is precisely intended to STOP YOU getting access. Speak to the folder owner and convince them that you need permission.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

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