+ Reply to Thread
Results 1 to 3 of 3

Open Folder (Prompt User for final folder name in location path)

  1. #1
    Registered User
    Join Date
    11-09-2012
    Location
    seattle
    MS-Off Ver
    Excel 2007
    Posts
    42

    Open Folder (Prompt User for final folder name in location path)

    Hello,

    I'm having a little difficulty creating this macro. I know how to open a folder, and I know how to open a file from a folder...


    ...but what if I want the user to click a button to active the macro, then they are prompted to enter in the final folder name of the folder he/she wishes to open through the use of a pop up?

    I assume that I first need to create a UserForm1 with the text field for the user to enter the exact name of the folder, and a button to proceed.

    Untitled.png

    Steps:

    Sub()
    Click button
    Prompt Opens
    User enters folder name
    Selects button to proceed
    Macro Opens Folder ("Network path \" + folder name "\"
    Window folder
    User can double click on excel file to launch.
    End sub

  2. #2
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: Open Folder (Prompt User for final folder name in location path)

    Hi,
    why dont you use the inputbox command.

    like this :

    Please Login or Register  to view this content.
    Happy Computing ,

    Xlbiznes.

    To show your appreciation please click *

  3. #3
    Registered User
    Join Date
    11-09-2012
    Location
    seattle
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: Open Folder (Prompt User for final folder name in location path)

    Quote Originally Posted by xlbiznes View Post
    Hi,
    why dont you use the inputbox command.

    like this :

    Please Login or Register  to view this content.
    That would work, not sure how to incorporate it. Might have to google it.

+ 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. create new folder at one location and copy photos in that folder from other location
    By meer_ali in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-22-2014, 05:20 AM
  2. Code to list the folder path and sub folder path of a specific file
    By kalai1587 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-13-2013, 03:51 AM
  3. [SOLVED] Macro to prompt user for folder location and save acitve workbook.
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-06-2013, 06:20 PM
  4. Prompt User for Directory(folder)
    By cocotrp in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-14-2011, 06:37 PM
  5. Prompt for the user to select folder
    By Pomme in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-20-2010, 11:47 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