+ Reply to Thread
Results 1 to 2 of 2

Macro: Open file but the filename changes

  1. #1
    Registered User
    Join Date
    07-11-2012
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2003
    Posts
    91

    Macro: Open file but the filename changes

    how can i execute a code that has a static filepath but the filename changes with a random number in the middle depending on batch run?

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Macro: Open file but the filename changes

    hi FLani, option example. Select folder, the code would search for any .xls file under the mask: "test*kp" (change it to your requirement). So the matching files could be: test1kp.xls, test1891kp.xls etc.

    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