+ Reply to Thread
Results 1 to 8 of 8

Version Control

  1. #1
    Registered User
    Join Date
    09-18-2012
    Location
    Virginia, USA
    MS-Off Ver
    Excel 2013
    Posts
    35

    Version Control

    I have a Excel based form that may change from time to time.

    What I would like to do is when someone with a copy of this form saved to their PC, on open check a internal sharepoint to see if there is a new version and if there is tell the user to download a new copy.

    Any ideas how I can do this?

    Thanks,
    Mark

  2. #2
    Valued Forum Contributor
    Join Date
    03-17-2012
    Location
    Warsaw, Poland
    MS-Off Ver
    2007/2010
    Posts
    555

    Re: Version Control

    here's something that should guide you in the proper direction. If you won't be able to figure out the rest, let someone know and I'm sure they will help - I'm done for tonight

    Please Login or Register  to view this content.
    When you got the code ready and steady, you can put it in Workbook_Open in order to automatically launch it on every startup.
    If you think that my answer was helpful, please click on the "Add to this user's Reputation" button.

  3. #3
    Registered User
    Join Date
    09-18-2012
    Location
    Virginia, USA
    MS-Off Ver
    Excel 2013
    Posts
    35

    Re: Version Control

    Thanks Bishonen

    This code works great for a file on my PC but when I change the file path to point to the sharepoint file I get a run time error on this line
    Please Login or Register  to view this content.
    This is the filepath structure

    Please Login or Register  to view this content.
    Any pointers on overcomming this?

    Cheers,
    Mark

  4. #4
    Registered User
    Join Date
    09-18-2012
    Location
    Virginia, USA
    MS-Off Ver
    Excel 2013
    Posts
    35

    Re: Version Control

    I'm still struggling with this - I've managed to cobble something together that seemed to work but seems that I'm getting todays date for the Check File rather than the date it was created.

    Please Login or Register  to view this content.
    I'm just using a simple text file as the check source as it will only be a small 1k file to get rather than a 400k+ file.

    What about instead of checking the date the chk file was created it read in a date value from within the text file?

    Really appreciate any help.
    Last edited by britinva; 11-27-2012 at 05:11 PM.

  5. #5
    Registered User
    Join Date
    09-18-2012
    Location
    Virginia, USA
    MS-Off Ver
    Excel 2013
    Posts
    35

    Re: Version Control

    Managed to get working - might not be best coding

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    09-18-2012
    Location
    Virginia, USA
    MS-Off Ver
    Excel 2013
    Posts
    35

    Re: Version Control

    Just small update

    Was having issues with

    Please Login or Register  to view this content.
    Sometimes after editing and saving to different filename got a new Created Date so went with creating a static Date using a Named Field called "Ver_Date" on a control tab.

    Please Login or Register  to view this content.
    Hope helps someone

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Version Control

    Why not just store the form as a template on the SharePoint server? Then users would always get a fresh copy.
    Entia non sunt multiplicanda sine necessitate

  8. #8
    Registered User
    Join Date
    09-18-2012
    Location
    Virginia, USA
    MS-Off Ver
    Excel 2013
    Posts
    35

    Re: Version Control

    Form is stored as a Template but I need to check is that anyone that has downloaded it previously and trying to use it again if they are online it auto-checks.

+ 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