+ Reply to Thread
Results 1 to 2 of 2

Prompt for the user to select folder

  1. #1
    Registered User
    Join Date
    07-14-2010
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Prompt for the user to select folder

    Hi,

    I'm new to VBA but have managed to write a macro to input certain lines of text files into a workbook, with each file creating a different worksheet. However, to change the location of the folder in which the files are found I need to change the code; although this isn't hard, my spreadsheet will be used by a few people so to make it more user friendly I want to calling up a dialogue box so the user can search through the directory and select the folder where the files are found.

    So far, I've managed to get it so that the folder is found but I can't then get it to search through this folder and use the files within. Any help would be greatly appreciated! I've put the relevant section of the code below, but it keeps stalling at the statements:

    Please Login or Register  to view this content.
    Thanks for the help!


    =======================================================
    Please Login or Register  to view this content.
    Last edited by Pomme; 07-20-2010 at 11:48 AM.

  2. #2
    Registered User
    Join Date
    07-14-2010
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Prompt for the user to select folder

    Hi, the way to solve this problem is to use:

    Please Login or Register  to view this content.

+ Reply to Thread

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