+ Reply to Thread
Results 1 to 2 of 2

time-out close of workbook, without saving if open as 'read-only'

  1. #1
    Registered User
    Join Date
    06-18-2015
    Location
    Swindon, England
    MS-Off Ver
    2010
    Posts
    2

    time-out close of workbook, without saving if open as 'read-only'

    Hi,

    I have a lot of workbooks that are shared between mulitiple users so I have added the option to open as read only if they are not going to be changing any data. I have also managed to set it up to automatically save and close after 10 minutes of inactivity. My issue now is that the read only version tries to save the document under a new file name at the end of 10 minutes, does anyone have any code that could help me to either not auto close a read-only workbook or to not save before closing?

    Thank you

  2. #2
    Forum Contributor mongoose36's Avatar
    Join Date
    06-10-2013
    Location
    Lincoln
    MS-Off Ver
    Excel 2013
    Posts
    389

    Re: time-out close of workbook, without saving if open as 'read-only'

    What I have done for workbooks that multiple users use and which I do not want to have read-only copies open is to write code in a workbook_open sub which checks if the workbook is read only and if so closes the file. You may not want the file closed, but you should be able to do a similar check in the code that saves and closes after 10 minutes. For example it only saves and closes a workbook that is not read only.
    If your questions has been answered to your satisfaction please don't forget to do the following:

    Add Reputation ... and ... Mark Thread as Solved

    Thanks,

    Ma 10:8b Freely you have received; freely give.

+ 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. Copy from first workbook, close open new workbook paste close
    By johncarr1952 in forum Hello..Introduce yourself
    Replies: 2
    Last Post: 08-04-2021, 08:50 AM
  2. Open workbook in read only or read write for excel 2010 version
    By Agent1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-20-2014, 07:19 PM
  3. Open excel file read the data and close
    By girish1989 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-04-2013, 10:09 AM
  4. Macro to close a workbook after x amount of time when its open read only
    By extremecorvette in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-17-2011, 05:43 PM
  5. Save an open workbook, then open template workbook and close the saved workbook
    By ondvirg in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-27-2009, 10:20 PM

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