+ Reply to Thread
Results 1 to 7 of 7

Retrieve DATE PICTURE TAKEN property from a file using VBA in Excel.

  1. #1
    Registered User
    Join Date
    01-27-2015
    Location
    Birmingham, England
    MS-Off Ver
    2013
    Posts
    2

    Retrieve DATE PICTURE TAKEN property from a file using VBA in Excel.

    I want to rename all photos in a folder using the date/time the picture was taken. currently my code is:

    Please Login or Register  to view this content.
    This works perfectly if the file hasn't been edited before running the macro. BUT, if a photo has been resized, the last modified date/time stamp is updated. I want to access the "DATE TAKEN" field which is visible in windows rather than the last modified property.

    Any suggestions?

  2. #2
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: Retrieve DATE PICTURE TAKEN property from a file using VBA in Excel.

    You'll have to use Shell to get the extended proerties.

    See also this help article.
    Please Login or Register  to view this content.
    David
    (*) Reputation points appreciated.

  3. #3
    Registered User
    Join Date
    01-27-2015
    Location
    Birmingham, England
    MS-Off Ver
    2013
    Posts
    2

    Re: Retrieve DATE PICTURE TAKEN property from a file using VBA in Excel.

    Thanks David. With your help I've managed to do it. Superb.

  4. #4
    Registered User
    Join Date
    05-05-2015
    Location
    -
    MS-Off Ver
    -
    Posts
    1

    Re: Retrieve DATE PICTURE TAKEN property from a file using VBA in Excel.

    Quote Originally Posted by Tinbendr View Post
    You'll have to use Shell to get the extended proerties.

    See also this help article.
    Please Login or Register  to view this content.
    Hi there
    I know the thread it's a bit old but I'm having issues with GetDetailsOf thingy
    For me property 25 returns nothing, and property 12 holds the value. However it returns ?4/?17/?2015 ??11:48 AM, so needless to say, it's not recognized as a date if I try to use it further down the line.
    I'm using Office 2010, and the image comes from an Canon 650D, if this info holds any value.
    Thank you very much.
    Regards
    Razvan

  5. #5
    Registered User
    Join Date
    02-20-2012
    Location
    Austin
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Retrieve DATE PICTURE TAKEN property from a file using VBA in Excel.

    Mine also returns ?4/?17/?2015 ??11:48 AM

    How do I get rid of this feature. I have tried
    Please Login or Register  to view this content.
    but it does not work

  6. #6
    Registered User
    Join Date
    02-20-2012
    Location
    Austin
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Retrieve DATE PICTURE TAKEN property from a file using VBA in Excel.

    I have also tried this recently and no luck at all.

    Please Login or Register  to view this content.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Retrieve DATE PICTURE TAKEN property from a file using VBA in Excel.

    Quote Originally Posted by rzvsividra View Post
    Hi there
    I know the thread it's a bit old but I'm having issues with GetDetailsOf thingy
    For me property 25 returns nothing, and property 12 holds the value. However it returns ?4/?17/?2015 ??11:48 AM, so needless to say, it's not recognized as a date if I try to use it further down the line.
    I'm using Office 2010, and the image comes from an Canon 650D, if this info holds any value.
    Thank you very much.
    Regards
    Razvan
    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. Click on picture and run macro to replace existing picture with selected picture file
    By houseflipsheet in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-14-2014, 12:02 AM
  2. changing property of a picture that is already pasted on excel
    By cc in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 06-10-2009, 09:33 PM
  3. Data retrieve from different file based on date
    By littyjose in forum Excel General
    Replies: 1
    Last Post: 03-21-2007, 12:14 PM
  4. Retrieve the file create date
    By AdamBrighton in forum Excel General
    Replies: 3
    Last Post: 05-26-2006, 11:40 AM
  5. [SOLVED] Retrieve MS Access DDB Property in Excel VBA
    By ibeetb in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-26-2005, 08:05 PM

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