+ Reply to Thread
Results 1 to 3 of 3

Open latest version of Word file from Excel

  1. #1
    Registered User
    Join Date
    08-23-2014
    Location
    Miami, USA
    MS-Off Ver
    365
    Posts
    69

    Open latest version of Word file from Excel

    Hi guys I need some help.

    I have a VBA code that opens a Word document saved in one of my drives and deletes some data from some tables.

    Please Login or Register  to view this content.
    My problem is that I have some other code that creates the Word document with a different name if the document already exists, it's some kind of version control code. What I need the above code to do, is open the document with the latest version in its name.

    This is what my drive would look like with different versions of the same document:

    Testing.jpg


    So my goal is to have the code open the "Sandy_Denver 2017_Proposal_v3", which would be the latest version of the document in that folder.

    Thanks in advance for any help provided.
    Last edited by sandy1977; 01-19-2017 at 06:44 PM.

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Open latest version of Word file from Excel

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-23-2014
    Location
    Miami, USA
    MS-Off Ver
    365
    Posts
    69

    Re: Open latest version of Word file from Excel

    Logit thank you so much for your help, what I'm currently looking for is to open the file based on the name of the document with the latest version, not the latest date on the file.

    The issue with your code is that not always the document with the latest date will be the latest version of the document I need to have opened using VBA.

    I'm not sure if I'm being clear, sorry but I do appreciate your help.
    Last edited by sandy1977; 01-19-2017 at 06:39 PM.

+ 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. VBA -> Open Latest Version of a File [After Read-Only Save]
    By BravesPiano5 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-26-2015, 05:53 PM
  2. Replies: 9
    Last Post: 11-28-2013, 05:20 PM
  3. Replies: 2
    Last Post: 03-05-2013, 12:30 PM
  4. Replies: 22
    Last Post: 12-11-2012, 12:43 PM
  5. importing latest version of a file
    By Gti182 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 02-23-2011, 02:03 AM
  6. Excel macro to Start Word and open latest saved file.rtf
    By BHudPE in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-09-2010, 10:45 PM
  7. How can I convert Excel 95 file to latest version?
    By dealrocker in forum Excel General
    Replies: 1
    Last Post: 07-03-2009, 05:57 AM

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