Results 1 to 4 of 4

Shared Workbook - Occasional Save Error

Threaded View

  1. #1
    Registered User
    Join Date
    10-03-2012
    Location
    Santa Fe, NM
    MS-Off Ver
    Excel 2010
    Posts
    2

    Shared Workbook - Occasional Save Error

    Hello All,

    I created a workbook that was meant to be used as a prototype for a program that would be developed in time. The customer liked it so much they want to keep using it and forego paying for development using an actual programming language. Essentially the spreadsheet uses a lot of conditional formatting to create a dashboard for keeping track of activities within a building. It works great for their needs and they like the simplicity of the interface. But adding an additional location (terminal with workbook open) is presenting me a challenge I haven't been able to overcome. Here's my issue: I thought the shared workbook feature would work until I realized how it works. So the changes at location one don't get updated at location two until the workbook gets saved. So I created a macro to save the workbook every minute. This works but about once a day one location generates one of two 1004 run time errors (either file is in use or file cannot be found). I'd like to "catch" when this happens, wait a few seconds, and restart the macro. Or, check if the file is available for saving prior to the macro running. What would be the best way to address my issue?

    Here's my macro code:

    Private Sub Save_Workbook()
    
    Application.DisplayAlerts = False
    ThisWorkbook.Save
    Application.DisplayAlerts = True
    
    Application.OnTime Now + TimeValue("00:01:00"), "Save_Workbook"
    
    End Sub
    Last edited by davesexcel; 04-28-2021 at 04:17 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to use workbook via shared network to Open/Save
    By Chandria in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-23-2017, 01:48 AM
  2. Looking for a macro to save shared workbook in another file
    By jayoung81 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-11-2015, 09:38 AM
  3. Auto save a shared Workbook
    By Arismac in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-03-2015, 05:06 AM
  4. Excel doesn't save shared workbook on nas
    By kharis2 in forum Excel General
    Replies: 9
    Last Post: 01-09-2015, 09:43 AM
  5. .xls save as .csv, but in a shared workbook
    By Cougar in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-30-2007, 10:54 AM
  6. Shared workbook - Save history tab?
    By smurphy812 in forum Excel General
    Replies: 4
    Last Post: 01-11-2007, 08:48 PM
  7. Disable Save in a shared workbook
    By LB79 in forum Excel General
    Replies: 0
    Last Post: 04-14-2005, 11:01 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