+ Reply to Thread
Results 1 to 5 of 5

Explorer's "Date Created" in an excel cell

  1. #1
    Registered User
    Join Date
    05-26-2017
    Location
    Burnsville, MN
    MS-Off Ver
    2016
    Posts
    50

    Explorer's "Date Created" in an excel cell

    Is there any VBA that can automatically populate the Windows Explorer "Date Created" into an excel cell and not the created date off the file? You can see in the screen shot these are two different dates. I need a static date to run formulas off of for this report that will be archived. I don't want to manually enter it every time I run the report. Every day I run the report, the date that I saved that version is the date I need static.

    Thanks

    New Bitmap Image.png

  2. #2
    Registered User
    Join Date
    10-15-2013
    Location
    Hawaii
    MS-Off Ver
    Excel 2007
    Posts
    63

    Re: Explorer's "Date Created" in an excel cell

    This function should work (I added the format function to trim the time, remove if you are looking to include):
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    05-26-2017
    Location
    Burnsville, MN
    MS-Off Ver
    2016
    Posts
    50

    Re: Explorer's "Date Created" in an excel cell

    Sorry I'm a novice with VBA. Your note said include the path and extension in the passed filename. Does this mean that I would have to edit my VBA with a new path and extension every time I save the file?

    I'm using a workbook basically as a template. After I update it, I save it with a new name each day. Also, I didn't notice any cell references in the VBA above. How do I know what cell the date will be displayed in?

  4. #4
    Registered User
    Join Date
    10-15-2013
    Location
    Hawaii
    MS-Off Ver
    Excel 2007
    Posts
    63

    Re: Explorer's "Date Created" in an excel cell

    Create a module in the Visual basic Editor, then add the above mentioned procedure. Then you can get the creation date in any cell, like you would any Excel function, by typing =CreatedDate(filename). If you want to populate the current workbook, then use this function instead (always the current):
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    05-26-2017
    Location
    Burnsville, MN
    MS-Off Ver
    2016
    Posts
    50

    Re: Explorer's "Date Created" in an excel cell

    Perfect! Thanks you very much!

+ 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. [SOLVED] Code Clean-Up: Delete "False" worksheet created when "Cancel" is chosen in Input Box
    By Kenny Blackwell in forum Excel Programming / VBA / Macros
    Replies: 25
    Last Post: 08-31-2015, 10:00 AM
  2. VBA - IE - click on "Open" in an internet explorer "file download" window
    By victoire in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-22-2013, 07:08 AM
  3. "Date Created" in footer with other words
    By DinaFelice in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-10-2012, 01:04 PM
  4. Replies: 1
    Last Post: 06-30-2006, 05:10 PM
  5. [SOLVED] Saving a file as the "date" it was created
    By Dave in forum Excel General
    Replies: 1
    Last Post: 05-17-2006, 05:40 AM
  6. [SOLVED] Showing "Created by User, Date, Time" in Footer
    By Mark Plaideau in forum Excel General
    Replies: 0
    Last Post: 04-09-2006, 06:35 PM
  7. [SOLVED] Missing "Export to Microsoft Excel" option in Internet Explorer
    By Donna YaWanna in forum Excel General
    Replies: 0
    Last Post: 06-29-2005, 08:05 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