Consulting

Results 1 to 4 of 4

Thread: Save Document's most recent version

  1. #1
    VBAX Regular
    Joined
    Jun 2005
    Posts
    95
    Location

    Save Document's most recent version

    Hi all VBaxers,

    I was wondering if there is something I can do with my Excel VBA code that would always save the files most recent version. I have a file with code that I use on my laptop (actually several others use their own version of the same file also). The problem I am having is that if I take my laptop into my car and my network connection is lost it won't let me save the file unless I change the name because it says it is Read Only. I want it to always save the document with the same name and with the most recent changes to it. This file changes constantly and it works very well but this is very frustrating. Thank you much!

  2. #2
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,064
    Location
    This came up as a thread some time ago with xluser2007 http://www.vbaexpress.com/forum/show...g-the-workbook

    The solution is to change the read only status before you open the workbook
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

  3. #3
    VBAX Regular
    Joined
    Jun 2005
    Posts
    95
    Location
    I don't open it as Read Only, I open it when I am connected to my network through a VPN but when the network connection is lost because I move my computer to my car and have to connect to my WiFi in my car, it thinks it was opened as Read Only. I want it to always over-write the old document every time I run the code UNLESS it has been opened specifically as Read-Only. Thank you.

  4. #4
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,064
    Location
    Did you look at the solution before you responded?
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •