+ Reply to Thread
Results 1 to 4 of 4

Loop through files with dynamically changing dates

  1. #1
    Registered User
    Join Date
    03-11-2019
    Location
    Melbourne, Australia
    MS-Off Ver
    2010
    Posts
    2

    Loop through files with dynamically changing dates

    I have the below files that are dropped into a folder each day. How do I write a macro so that it will open each file each day.

    For example the file name of the first file today is U2714866_20190308_20190308, but tomorrow, the file will be called U2714866_20190311_20190311

    Thanks.

    Capture.PNG

  2. #2
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    2,047

    Re: Loop through files with dynamically changing dates

    Perhaps something like this

    Please Login or Register  to view this content.

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Loop through files with dynamically changing dates

    Will these be the only files in the folder?
    If posting code please use code tags, see here.

  4. #4
    Registered User
    Join Date
    03-11-2019
    Location
    Melbourne, Australia
    MS-Off Ver
    2010
    Posts
    2

    Re: Loop through files with dynamically changing dates

    Norie, yes they will be the only files in the folder.

+ 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. Enter 2 dates to count range from another dynamically changing sheet
    By Wayprof in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-13-2018, 11:23 AM
  2. [SOLVED] Copy dynamically changing column and Paste using VBA Loop (Loop within Loop)
    By nixon72 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-12-2013, 12:46 PM
  3. Dynamically changing of range
    By Steffen_DK in forum Excel General
    Replies: 4
    Last Post: 01-30-2012, 06:43 PM
  4. Changing an Image Dynamically
    By ions in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-02-2008, 08:28 AM
  5. [SOLVED] changing selections dynamically
    By [email protected] in forum Excel General
    Replies: 1
    Last Post: 08-22-2006, 11:30 AM
  6. [SOLVED] Dynamically changing a link name
    By [email protected] in forum Excel General
    Replies: 4
    Last Post: 07-11-2006, 01:35 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