+ Reply to Thread
Results 1 to 5 of 5

auto select file

  1. #1
    Registered User
    Join Date
    06-27-2018
    Location
    America
    MS-Off Ver
    2007
    Posts
    30

    auto select file

    My macro, allows me to choose what folder I want to open, and then select a file. It copys and pastes the information I want from the file to my active workbook.

    Is there a way to choose what folder you want to open and the macro chooses which file to open, to copy and paste information from, based on a partial title?

    The folder is variable so I have to choose it.

    for example the files would look like this:

    abc1date
    abc2date
    abc3date

    So the partial title would just be "abc1" or "abc2"

    this is the code I have right now:

    Please Login or Register  to view this content.

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

    Re: auto select file

    https://stackoverflow.com/questions/...rtial-filename

    https://www.mrexcel.com/forum/excel-...ile-names.html

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: auto select file

    Please Login or Register  to view this content.

    Or:-

    Please Login or Register  to view this content.
    Last edited by mehmetcik; 07-18-2018 at 02:01 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  4. #4
    Registered User
    Join Date
    06-27-2018
    Location
    America
    MS-Off Ver
    2007
    Posts
    30

    Re: auto select file

    Hi, I am still having difficulty. The first code keeps saying, "run time error 424 object required". The second one doesn't seem to work either :/

  5. #5
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475

    Re: auto select file

    @Logit, please read rule #13 of the forum rules.

+ 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. Auto select file based on partial title
    By kbenjamin827 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-16-2018, 07:55 AM
  2. Open, then auto select file and automatically run program
    By kbenjamin827 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-14-2018, 05:13 PM
  3. Replies: 11
    Last Post: 11-03-2017, 05:11 AM
  4. how to auto select drop list item when closing file?
    By Imran Magsi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-14-2016, 02:39 AM
  5. Macro - Open File Explorer, Select File, Import certain information from file
    By Drayde in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-25-2015, 08:58 AM
  6. Newbie: Auto Select/un-Select an Range of Slicer Items
    By luckyali in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-23-2014, 09:52 AM
  7. [SOLVED] Modify existing code to select file instead of select folder
    By Gti182 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-04-2014, 09:41 AM

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