+ Reply to Thread
Results 1 to 3 of 3

Need help opening files based on user input

  1. #1
    Registered User
    Join Date
    06-06-2013
    Location
    South Africa
    MS-Off Ver
    Excel 2010 and Excel 2013
    Posts
    21

    Need help opening files based on user input

    Good day all

    I need to do a macro, where the user is prompted for input, which can be any value from 1 to 50. the input must then be combined with ".xls (resulting in a filename for example 5.xls if the user entered "5" at the ptompt.) Once that is done, I need to open the files with the same names in 3 different folders (for example c:\documents\folder A, c:\documents\folder B and c:\documents\folder C).

    I am not familiar enough with VBA or SQL to do this in a macro. Anyone with ideas?

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,924

    Re: Need help opening files based on user input

    Your post does not comply with Rule 8 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).

    crossposted: http://www.mrexcel.com/forum/excel-q...ser-input.html
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Contributor mongoose36's Avatar
    Join Date
    06-10-2013
    Location
    Lincoln
    MS-Off Ver
    Excel 2013
    Posts
    389

    Re: Need help opening files based on user input

    Try this...see comments in the code for explanation. If you have any questions let me know.

    Please Login or Register  to view this content.
    Last edited by mongoose36; 03-24-2016 at 10:22 PM.
    If your questions has been answered to your satisfaction please don't forget to do the following:

    Add Reputation ... and ... Mark Thread as Solved

    Thanks,

    Ma 10:8b Freely you have received; freely give.

+ 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. Data Input Form with number of line items based on user input
    By j_gideon in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-25-2013, 02:54 PM
  2. user defined macro to replace certain characters in a string based on user input
    By whatappears in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-17-2012, 06:25 PM
  3. Moving Files based on user input to choose destination
    By kcinsti in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-23-2012, 03:56 AM
  4. Automatic Formula Input Based on User Input Using a Macro
    By Drayloc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-03-2012, 12:10 PM
  5. Using text box input to lookup number and replace based on user input into new column
    By harl3y412 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-28-2011, 03:15 PM
  6. Replies: 2
    Last Post: 02-09-2011, 10:45 AM
  7. playing mp3 files on user input
    By Maxi in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-17-2006, 10:55 AM
  8. Playing .mp3 files based on user input
    By Maxi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-13-2006, 10:35 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