+ Reply to Thread
Results 1 to 4 of 4

Using BrowseFolder Control To Set Path For Saving

  1. #1
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,012

    Using BrowseFolder Control To Set Path For Saving

    .
    I'm trying to utilize the BrowseFolder control to obtain the user's preference for saving a file. Just to get the path and append that in the SAVING code.

    Using the below macro I can get it to save to the DESKTOP or "C:\Users" but not to any other folder.

    Your assistance would be greatly appreciated. I know it's only a word to two ... or a line or two ... but I simply can't get it.
    (ps: I want to go this route so the user will not be able to change the filename. The filename is being establish in the TextBox1 control)

    Thanks.

    Please Login or Register  to view this content.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Using BrowseFolder Control To Set Path For Saving

    Hi Logit,

    I think the "BrowseFolder Control" must be a non standard control someone invented. Try instead "Application.FindFile" dialog. This presents the directory to the user and they move around, like File Explorer, and finally click on the file they want. You should then be able to grab the folder path and/or filename from this after the file is open using "Windows.Application.ActiveWorkbook.Name" or "Windows.Application.ActiveWorkbook.Path"



    HTH.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,012

    Re: Using BrowseFolder Control To Set Path For Saving

    .
    Thanks. I'll give it a go and see what happens.

  4. #4
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,012

    Re: Using BrowseFolder Control To Set Path For Saving

    .

    I tried a number of approaches to obtain the selected folder path. There are a lot of suggestions and examples on the .Net but this is the first
    one I could get to work for me :

    Please Login or Register  to view this content.

    Thanks to all who contributed.

+ 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. [SOLVED] Saving pdf in the same path selected by user
    By ell_ in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-01-2018, 09:30 PM
  2. saving to a specific file path
    By cartica in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-05-2013, 04:06 PM
  3. 2 cells as path for saving as
    By graiggoriz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-24-2013, 08:31 AM
  4. [SOLVED] BrowseFolder Query
    By plasma33 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-05-2012, 04:52 AM
  5. Problem saving to correct file path
    By pixifaery in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-27-2010, 09:58 AM
  6. Path for File Saving Defined by USER
    By crapmind in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-21-2007, 09:58 AM
  7. [SOLVED] Saving a file to a different path
    By SVTman74 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-26-2005, 04:05 PM

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