+ Reply to Thread
Results 1 to 2 of 2

Disable save and save as upon opening a certain workbook

  1. #1
    Registered User
    Join Date
    11-29-2010
    Location
    Belgium
    MS-Off Ver
    2010
    Posts
    87

    Exclamation Disable save and save as upon opening a certain workbook

    Hi all,

    I have a macro enabled workbook, and I want it to
    prevent the user from saving the file in any way. Canon anyone pls tell me how to disable the save and save as functionality using vba in the Auto_Open subroutine?

    Thanks in advance.

    Tino XXL

  2. #2
    Valued Forum Contributor Steffen Thomsen's Avatar
    Join Date
    10-15-2010
    Location
    Kolding, Denmark
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    953

    Re: Disable save and save as upon opening a certain workbook

    You have to look into the event called "Worksheet_BeforeSave"

    This will do what you ask, but it's easy to surcomvent

    Please Login or Register  to view this content.
    You can read a little more about the event here

    http://msdn.microsoft.com/en-us/library/ff840057.aspx
    Please take time to read the forum rules

+ 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