+ Reply to Thread
Results 1 to 4 of 4

VBA Alternative Folder Picker

  1. #1
    Forum Contributor
    Join Date
    07-08-2008
    Location
    New York City
    MS-Off Ver
    2013-2016
    Posts
    157

    VBA Alternative Folder Picker

    Hello,

    VBA has the FileDialog(msoFileDialogFolderPicker), which is the default explorer view.

    Is there any way to get the alternative folder picker in the picture to work in VBA? I was not able to find any reference to it.

    Thanks.
    Attached Images Attached Images

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Cool Hello, try this !


    A VBA demonstration for starters :

    PHP Code: 
    Sub DemoFolder()
        
    Dim obj As ObjectP$
        
    Set obj CreateObject("Shell.Application").BrowseForFolder(0vbLf "Your text here :"1"")
         If 
    obj Is Nothing Then Beep: Exit Sub Else obj.Self.Path "\": Set obj = Nothing
        MsgBox P
    End Sub 
    ► Do you like it ? ► So thanks to click on bottom left star icon « Add Reputation » !

  3. #3
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: VBA Alternative Folder Picker

    Not identical but you can use the Shell.Application object:

    Please Login or Register  to view this content.
    WBD
    Office 365 on Windows 11, looking for rep!

  4. #4
    Forum Contributor
    Join Date
    07-08-2008
    Location
    New York City
    MS-Off Ver
    2013-2016
    Posts
    157

    Re: VBA Alternative Folder Picker

    I see. It was a shell application. Both work great.

    Thank you, Marc L and WideBoyDixon!

+ 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. Multiselect Folder Picker
    By ImranBhatti in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-08-2018, 03:29 PM
  2. [SOLVED] Form loses focus after using Outlook folder picker
    By Tooley in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-13-2017, 01:39 PM
  3. [SOLVED] Dt Picker Alternative
    By Nisio in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 05-23-2016, 06:52 PM
  4. save excel with folder picker
    By daboho in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-07-2016, 08:35 AM
  5. [SOLVED] save As worksheet via Folder Picker
    By clementraj1 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-01-2016, 04:49 PM
  6. [SOLVED] file-picker thinks it is a folder-picker if the folder picker runs first?
    By brucemc777 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-01-2016, 01:14 PM
  7. Folder picker breaks for Mac
    By skania in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 05-14-2013, 11:59 AM

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