+ Reply to Thread
Results 1 to 3 of 3

Wildcards in a File name

  1. #1
    Forum Contributor
    Join Date
    11-27-2009
    Location
    Oxford
    MS-Off Ver
    Excel 2003, 2007 and 2010
    Posts
    120

    Exclamation Wildcards in a File name

    Hey all

    I have some code that lookes through a folder to find a file. the thing is that the start of the file name is the a date so will change each week but the end of the file name is always the persons name.
    I want to have a macro to open the file, how can i do this using a wildcard so that the macro will work each time it changes.

    the code i have now is

    Please Login or Register  to view this content.
    that doesnt seam to work. do you have to put the wild card in differently.

    thanks

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,202

    Re: Wildcards in a File name

    I think you might find it simpler to use the open file dialog to allow selection of the file
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Contributor
    Join Date
    11-27-2009
    Location
    Oxford
    MS-Off Ver
    Excel 2003, 2007 and 2010
    Posts
    120

    Re: Wildcards in a File name

    I want to get the data from multiple files and dont really want the user to have to do much. basicaly i want to open a workbook copy the data to another workbook, close it and then open another 1 and copy the data to the same workbook and add it to the other data. i have to do this about 10 times. is there another way to do it?

+ 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