Results 1 to 3 of 3
  1. #1
    4 Star Lounger
    Join Date
    Sep 2002
    Location
    Stafford, Staffordshire, England
    Posts
    585
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Open folder to view files (xp)

    I've searched the lounge and trawled through the Excel help files but I cannot find what I need. A user wishes to press a command button which will then open a specific folder in order to view the files therein. Any takers?

    TIA
    <font color=blue><font face="Script MT Bold"><big>Rob</big></font face=script></font color=blue>

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Open folder to view files (xp)

    You can use code like this:

    With Application.FileDialog(msoFileDialogFilePicker)
    .InitialFileName = "F:Access*.*"
    If .Show = True Then
    MsgBox "You selected " & .SelectedItems(1)
    End If
    End With

  3. #3
    4 Star Lounger
    Join Date
    Sep 2002
    Location
    Stafford, Staffordshire, England
    Posts
    585
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Open folder to view files (xp)

    <img src=/S/thankyou.gif border=0 alt=thankyou width=40 height=15>Hans.
    <font color=blue><font face="Script MT Bold"><big>Rob</big></font face=script></font color=blue>

Posting Permissions

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