Results 1 to 4 of 4

Specified folder path to select file path

Threaded View

  1. #2
    Forum Contributor BeachRock's Avatar
    Join Date
    11-01-2011
    Location
    Oregon, United States
    MS-Off Ver
    Excel 2016
    Posts
    403

    Re: Specified folder path to select file path

    Try this:

    Sub SelectFolder()
    With Application.FileDialog(msoFileDialogFolderPicker)
      .InitialFileName = ActiveWorkbook.Path
      .Title = "Please choose a folder"
      .AllowMultiSelect = False
      If .Show = -1 Then Range("B5").Value = .SelectedItems(1)
    End With
    End Sub
    Is that what you need?

    EDIT: Looking back at your first post, I think I misunderstood. You want the path selected to be a link to that folder.. I found this on another thread that you could maybe work into your other macro, or mine, which I assume they probably both do the same thing...

    http://www.excelforum.com/excel-prog...hyperlink.html
    Last edited by BeachRock; 10-26-2012 at 05:12 PM.
    -------------
    Tony

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