+ Reply to Thread
Results 1 to 3 of 3

Determine create date of imported file

  1. #1
    Registered User
    Join Date
    08-02-2006
    Posts
    25

    Talking Determine create date of imported file

    All,

    I have created a macro that combines all tab delimited text files within a specified folder into one master file (Excel). I would like to name this file "Master" & "doff" where "doff" is the date that the first file to be imported was created or last modified as viewed by the operating system. Is this possible in Excel VBA? Thanks!

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello St4rcutter,

    Here is macro to return the creation date of the file you choose. The macro requires the path and file name, i.e. "C:\My file.xls". Place this code in a Standard VBA Module.

    Please Login or Register  to view this content.
    Call the macro this way...
    creationDate = GetFileCreationDate "C:\My File.xls"

    Sincerely,
    Leith Ross

  3. #3
    Registered User
    Join Date
    08-02-2006
    Posts
    25
    Fantastic!!!! Thank you Leith.

+ 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