+ Reply to Thread
Results 1 to 2 of 2

Update code so user can select any folder and prevent import of data if there is no data

  1. #1
    Registered User
    Join Date
    12-07-2015
    Location
    Greene, NY
    MS-Off Ver
    2010
    Posts
    1

    Update code so user can select any folder and prevent import of data if there is no data

    I have the following code to look in a folder selected by user, and import data from each file stored in that folder. What I'm looking for essentially is updates to my code that will allow user to select any folder regardless if it's the folder the master file is located in. I would also like updates to the code that imports the data so it will not import if a file currently has no data. Any help would be appreciated.
    Please Login or Register  to view this content.
    Last edited by FDibbins; 02-28-2019 at 06:10 AM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,972

    Re: Update code so user can select any folder and prevent import of data if there is no da

    Hi, welcome to the forum

    1. Code Tags Added
    Your post does not comply with Rule 2 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html

    (I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)

    2. Your post does not comply with Rule 3 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

    Please make sure to include the full link, so that other members will be permitted to continue helping you

    Note that if you have fewer than 10 posts, you may need to type the link, or past it in pieces (or ask a mod to do that for you)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. Replies: 6
    Last Post: 12-02-2015, 03:32 PM
  2. update code for inserting data in all closed file in folder
    By mokht in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-01-2015, 07:14 PM
  3. VBA code to allow user to select workbook and worksheet for data processing
    By spectrumenginner in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-26-2015, 03:08 PM
  4. Replies: 3
    Last Post: 01-19-2014, 12:27 PM
  5. [SOLVED] How do I update my static line graph to allow a user to select which data to graph
    By capcon in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 12-31-2011, 10:22 PM
  6. Code to prevent user to Select COLUMNS but allow to select ROWS
    By tengrosita in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-05-2011, 03:46 AM
  7. [SOLVED] Prevent equation from skipping data when referencing import data?
    By lybrt98 in forum Excel General
    Replies: 0
    Last Post: 08-30-2005, 12: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