Closed Thread
Results 1 to 9 of 9

External word documents last saved date in Excel cells.

  1. #1
    Registered User
    Join Date
    11-27-2012
    Location
    tel aviv, israel
    MS-Off Ver
    2007
    Posts
    3

    External word documents last saved date in Excel cells.

    Hello everyone,

    first of all let me say that there are really some very smart people around this forum. I've used many of their solutions and I must say Bravo, to all those that assist with their knowledge.
    Now as to my problem, I've roamed this forum and others to get some info, but maybe it's not exactly right the way I'm formulation my question.

    I have number of word documents where each doc represents a customer. we use that word doc as a CRM database for that specific customers. so were talking 20-40 word docs all in one directory each with a different company name.

    I have an Excel file that is the Master CRM in which each line has some details to the customer, a hyperlink to the word document (so that when you double click the word doc is opened) and some other info. I'd like to add a cell formula that will show the last modified date of the external word file.

    Is there some way to do this in a formula so that I just need to copy it as I open each new customers file? Also please note that the docs and the master file will be placed in dropbox folder.

    Thanks all and once again kudows to this forum.

    Thanks

  2. #2
    Forum Contributor
    Join Date
    09-27-2012
    Location
    London, England
    MS-Off Ver
    2003, 2010
    Posts
    344

    Re: External word documents last saved date in Excel cells.

    Hi - Try this:

    Please Login or Register  to view this content.
    First column gives the File Path, second column the Date of "last modified"

    Hope this helps.
    If solved kindly remember to mark Thread as solved.
    Click the small star icon at the bottom left of my post if this was useful.

  3. #3
    Registered User
    Join Date
    11-27-2012
    Location
    tel aviv, israel
    MS-Off Ver
    2007
    Posts
    3

    Re: External word documents last saved date in Excel cells.

    Kbkumar

    Sorry for the ignorance, but what is the formula that I place in the excel cell?. and where does the hyperlink go?

  4. #4
    Forum Contributor
    Join Date
    09-27-2012
    Location
    London, England
    MS-Off Ver
    2003, 2010
    Posts
    344

    Re: External word documents last saved date in Excel cells.

    Sorry, forgot to tell. This is not a formula but a VBA code that will get you the desired results.

    Will upload you the File with Macro in a bit...

  5. #5
    Forum Contributor
    Join Date
    09-27-2012
    Location
    London, England
    MS-Off Ver
    2003, 2010
    Posts
    344

    Re: External word documents last saved date in Excel cells.

    See the attached file. Save this to your local drive and follow these steps:

    1. Open this file, Press ALT + F11. This will open the VBA Screen.
    2. Double click "This Workbook" under VBA Project
    3. You will see the code mentioned in post #2
    4. The line which says MyFolder = "M:\Desktop" & "\" change the folder path mentioned in quotes as per your requirement. Make sure you dont delete or overwrite the last part "\"
    5. To run the macro either press F5 while being in the VBA screen or Go to Excel, Go to View - Macros - View Macros and select This Workbook.Test and Click Run.


    You will see that Sheet 1 will have the results you were expecting.

    Hope this helps and works for you...
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    11-27-2012
    Location
    tel aviv, israel
    MS-Off Ver
    2007
    Posts
    3

    Re: External word documents last saved date in Excel cells.

    Kbkuma;

    Thanks!!! this works perfectly and it's great for a different part of project. better than what I had in mind. However, this is not exactly what I needed for this problem.

    You see, I have in cell A1 a hyperlink that when clicked opens a word document. the hyperlink in the cell is fixed. i.e. the position doesn't change. next to the hyperlink cell is the last date updated cell. That's where the last modified is.

    I'd like to design a subroutine that defines a formula that takes the path of the file in the hyperlink in cell A1 and returns the last modified date of that file (in the hyperlink address). this should occur every time the excel file is opened.

    I'm sorry to re-ask you since you already solved one issue for me, but can you help out with this.

    Many thanks....

  7. #7
    Forum Contributor
    Join Date
    09-27-2012
    Location
    London, England
    MS-Off Ver
    2003, 2010
    Posts
    344

    Re: External word documents last saved date in Excel cells.

    Hi - thanks for further inputs. Have modified the code to pull the "Last Modified Date" in column B using the existing hyperlinks in column A upon opening of the workbook. Copy paste the below code in "This Workbook" as per steps mentioned in post #5:

    Please Login or Register  to view this content.
    This will get activated everytime the workbook containing the hyperlinks is opened and will generate the "Last Modified Date" for alla files mentioned in column A.

    Hope this helps.

  8. #8
    Registered User
    Join Date
    03-08-2021
    Location
    Canada
    MS-Off Ver
    365
    Posts
    5

    Re: External word documents last saved date in Excel cells.

    Thanks kbkumar for this post. This is exactly what i was looking for.

  9. #9
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: External word documents last saved date in Excel cells.

    Quote Originally Posted by jeronimo1503 View Post
    Thanks kbkumar for this post. This is exactly what i was looking for.
    Welcome to the Forum :-)

    You are responding to a post that is over 11 years old and kbkumar has not been active here for seven years. Please comment on threads only you have something to add for the solution.

    Thread closed.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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