+ Reply to Thread
Results 1 to 3 of 3

Enable/Disable Save As in workbook

  1. #1
    Registered User
    Join Date
    07-26-2013
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    7

    Enable/Disable Save As in workbook

    I'm looking for help in being able to selectively disable the 'Save As' capability in Excel. I have a template in which end users should not be able to use the Save As command, but admins (using a password-protected UserForm would have ability to Save As for maintenance purposes). I have used the following code:

    Please Login or Register  to view this content.
    This works perfectly to disable the Save As process, but I would like to enable it for admins via an option on an admin UserForm (I use radio buttons on the UserForm with an execute button). Hopefully this makes sense.

  2. #2
    Forum Expert JasperD's Avatar
    Join Date
    05-07-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    1,393

    Re: Enable/Disable Save As in workbook

    Can't you just put a checkbox on the userform which links to a cell somewhere, which you check before kicking in cancel = true?
    Lets say your checkbox links to sheet 3, cell B4, you could do as follows :

    Please Login or Register  to view this content.
    Easier still is to only allow certain users to save.
    I do that from getting the username, by for example :

    Please Login or Register  to view this content.
    and then check if the uname is in a list of "allowed" users.

    Please click the * below if this helps
    Please click the * below if this helps

  3. #3
    Registered User
    Join Date
    07-26-2013
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Enable/Disable Save As in workbook

    Thanks! I hadn't thought about using a Range lookup. Works perfectly.

+ 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. Disable/Enable Save and Save As
    By Mumps1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-30-2013, 10:33 AM
  2. Save is disabled, want to enable, save, then disable again
    By ker9 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-28-2012, 12:32 PM
  3. excel disable save but enable with password prompt?
    By techmob in forum Excel General
    Replies: 6
    Last Post: 06-17-2011, 03:11 PM
  4. Disable Save As and Save - enable Save via button
    By LampCommandr in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-07-2011, 05:42 PM
  5. Disable/Enable Save,SaveAs & Sendto in File Menu based on condition
    By aravindhan_31 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-16-2011, 04:43 AM

Tags for this Thread

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