+ Reply to Thread
Results 1 to 5 of 5

How to Block Save As function from Excel

  1. #1
    Registered User
    Join Date
    07-27-2014
    Location
    Saudi Arebia
    MS-Off Ver
    Microsoft 10
    Posts
    56

    How to Block Save As function from Excel

    Dear Friend,
    I seek your assistance to make code for Block Save As function from my Excel file

    i had one excel file for my factory but somebody makeing Save As instead of Save. this kind wrong usage makong big confusion to Data entry employees . So please help me to Block the save As opetion in excel file

    thanks for your big support

    By,
    Nisar.mohammed
    Attached Files Attached Files

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: How to Block Save As function from Excel

    Hi Nisar.mohammed

    See this link

    http://www.ozgrid.com/VBA/prevent-save-as.htm
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Registered User
    Join Date
    07-27-2014
    Location
    Saudi Arebia
    MS-Off Ver
    Microsoft 10
    Posts
    56

    Re: How to Block Save As function from Excel

    Dear Mr. jaslake
    i want to Stop Save As option .so my file cannot save to any location
    Thamks for your big time & ccoperation

    br,
    Nisar.mohammed

  4. #4
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,397

    Re: How to Block Save As function from Excel

    Nisar,

    This is what I use.

    1. Open VBA and click "Workbook".
    2. Set to "Workbook" and "Before Save"
    3. Enter this Code:
    Please Login or Register  to view this content.
    (Obviously the Message Box Comment part is optional)

    And don't forget to collapse the VBA and protect it, otherwise someone will simply go the Code and "comment it out"!

    Ochimus
    Last edited by Ochimus; 05-10-2015 at 08:38 AM.

  5. #5
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: How to Block Save As function from Excel

    Hi Nisar
    you can constraint the Save As function to your username only
    Please Login or Register  to view this content.
    in other words you can enable the Save As function for specific condition (which is here the username)
    Regards
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

+ 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. How to block access for Save as excel file in Same folder
    By Nisar.mohammed in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-06-2015, 09:51 AM
  2. [SOLVED] Defined Function: Compile Error Block If without End If
    By forrestgump1980 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-17-2014, 07:12 AM
  3. Replies: 5
    Last Post: 10-09-2012, 10:44 AM
  4. Replies: 2
    Last Post: 06-22-2010, 07:55 AM
  5. How to block file Save (^S)?
    By G Lykos in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-24-2005, 12:05 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