+ Reply to Thread
Results 1 to 9 of 9

Stop workbooks from being saved

  1. #1
    Forum Contributor
    Join Date
    01-24-2011
    Location
    Sheppey
    MS-Off Ver
    Excel 2010
    Posts
    239

    Stop workbooks from being saved

    I have work books that are shared via a server with the folder set that anyone can view them as a read only. Is there any way that I can stop the work sheets ( may be with some VBA code) being saved under a different name to protect all the work I have put in to these.
    Last edited by BarryTSL; 02-04-2011 at 01:50 PM.

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Stop workbooks from being saved

    Try pasting

    Please Login or Register  to view this content.
    into the ThisWorkbook tab in the VBA editor (Alt F11). This effectively disables the save operation.

    In order to allow you to save the workbook containing this code, type

    Please Login or Register  to view this content.
    into the Immediate window (control G) to temporarily stop the application firing this code.
    Martin

  3. #3
    Forum Contributor
    Join Date
    01-24-2011
    Location
    Sheppey
    MS-Off Ver
    Excel 2010
    Posts
    239

    Re: Stop workbooks from being saved

    Thank you , I have tried the code but it will not allow me to save?
    Is there a way I can put a code into a macro with short cut key to disable the code so I could either safe changes to the workbook with a button or save changes only made by me but with the save buttons disabled again on re-opening.
    Last edited by BarryTSL; 02-03-2011 at 10:55 AM.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Stop workbooks from being saved

    Of course they can open without enabling macros & save the workbook
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  5. #5
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Stop workbooks from being saved

    Or they could just copy the workbook and rename it.

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  6. #6
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Stop workbooks from being saved

    Oh, and don't forget to turn events back on again...

    Quote Originally Posted by mrice View Post
    Please Login or Register  to view this content.
    into the Immediate window (control G) to temporarily stop the application firing this code.
    Dom

  7. #7
    Forum Contributor
    Join Date
    01-24-2011
    Location
    Sheppey
    MS-Off Ver
    Excel 2010
    Posts
    239

    Re: Stop workbooks from being saved

    Is there a way I can put a code into a macro with short cut key to disable the code so I could either safe changes to the workbook with a button or save changes only made by me but with the save buttons disabled again on re-opening.

  8. #8
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Stop workbooks from being saved

    You could make it so only you can save it using something like this:

    Please Login or Register  to view this content.

    Dom

  9. #9
    Forum Contributor
    Join Date
    01-24-2011
    Location
    Sheppey
    MS-Off Ver
    Excel 2010
    Posts
    239

    Re: Stop workbooks from being saved

    Thank you very much, I can play with that to suit my needs, Thanks again

+ 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