+ Reply to Thread
Results 1 to 6 of 6

Try opening a file from a folder without permission

  1. #1
    Registered User
    Join Date
    04-16-2015
    Location
    eindhoven
    MS-Off Ver
    2010
    Posts
    3

    Question Try opening a file from a folder without permission

    Hello,

    At my work i cannot open specific folders, but when i have the full url i can open the file (if i manually put that in my file explorer and i go there).
    But if i try with VBA to open the file with the full url, it gets the error that the file isn't there.

    What do i try to do:
    I want excel to open files so that i dont have to open them manualy.

    For example:
    When i try opening C:\Program Files\Avaya\IC71\bin\qui.exe trough VBA with code i get the error "The file isn't there". When i go there manualy (copy/paste the full url) i can open the file. If i go manually to "C:\Program Files\Avaya\IC71\bin" i get the error that i don't have permission.

    The code i use is:
    Private Sub CommandButton2_Click()
    Dim sFullPathToExecutable As String
    sFullPathToExecutable = "C:\Program Files\Avaya\IC71\bin\qui.exe"
    Shell sFullPathToExecutable
    End Sub

    Any help would be appriciated, since im stuck.

  2. #2
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: Try opening a file from a folder without permission

    try this
    Please Login or Register  to view this content.
    Regards, John55
    If you have issues with Code I've provided, I appreciate your feedback.
    In the event Code provided resolves your issue, please mark your Thread as SOLVED.
    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

    ...enjoy -funny parrots-

  3. #3
    Registered User
    Join Date
    04-16-2015
    Location
    eindhoven
    MS-Off Ver
    2010
    Posts
    3

    Re: Try opening a file from a folder without permission

    thanks for your reply John.

    I tried the code but it doesn't work. It gives me the error "cannot open C:\Program Files\Avaya\IC71\bin\qui.exe"

  4. #4
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: Try opening a file from a folder without permission

    .......sorry!

  5. #5
    Registered User
    Join Date
    04-16-2015
    Location
    eindhoven
    MS-Off Ver
    2010
    Posts
    3

    Re: Try opening a file from a folder without permission

    hehe, no problem i appriciate the effort!

    If anyone knows somethings to make it work, please let me know.

  6. #6
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: Try opening a file from a folder without permission


+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Folder Permission
    By my_fair_share in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-08-2010, 12:43 PM
  2. Opening a file that is in a sub folder
    By Mordred in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-10-2010, 11:51 AM
  3. Opening specific file or folder from Excel
    By goranm in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-12-2010, 08:53 AM
  4. Folder permission Issues
    By champs in forum Outlook Programming / VBA / Macros
    Replies: 0
    Last Post: 06-09-2009, 07:26 AM
  5. [SOLVED] opening each file in a folder
    By JT in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-01-2005, 02:05 PM

Tags for this Thread

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