+ Reply to Thread
Results 1 to 5 of 5

Open Folder Dialog Box with Combine Files Code

  1. #1
    Registered User
    Join Date
    08-14-2007
    Posts
    27

    Open Folder Dialog Box with Combine Files Code

    I have the below code which combines workbooks into one sheet. The path to the folder containing the workbooks is specified in the code. However, what I want to do is use the folder open dialog box so that it prompts the user to select the folder where the files are. I've tried various ways of doing this but so far have not been able to figure it out. Can anyone assist? I am hoping to accomplish this without dramatically modifying my existing code. Thank you

    Please Login or Register  to view this content.
    Last edited by wealthistime; 04-14-2011 at 05:56 AM. Reason: SOLVED

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Open Folder Dialog Box with Combine Files Code

    Something like this maybe:

    Please Login or Register  to view this content.

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Open Folder Dialog Box with Combine Files Code

    With events, alerts etc being turned off at the beginning of your code it's also worth building in some error handling to turn them back on should things bomb out for any reason:

    Please Login or Register  to view this content.

    Dom

  4. #4
    Registered User
    Join Date
    08-14-2007
    Posts
    27

    Re: Open Folder Dialog Box with Combine Files Code

    Oh man, perfect!!! thank you so much!

  5. #5
    Registered User
    Join Date
    06-15-2015
    Location
    spokane washington
    MS-Off Ver
    2011
    Posts
    4

    Re: Open Folder Dialog Box with Combine Files Code

    This gave me an error without showing a prompt to select the folder where the excel files are housed. any suggestions?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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