+ Reply to Thread
Results 1 to 5 of 5

Is there a way to allow people to modify a workbook, but prevent them from saving?

  1. #1
    Forum Contributor
    Join Date
    03-12-2004
    Posts
    147

    Is there a way to allow people to modify a workbook, but prevent them from saving?

    Basically I have some templates setup that are designed to have data copy/pasted from our computer systems, then you run a macro to format the data and do some other tricks.

    These templates are designed for a variety of users, and usually once every few weeks someone screws the template up and saves over it-rendering it useless. I of course keep archived backups that I use to replace these files, but I was wondering if there was a way to setup the workbooks so you could restrict people from saving over the template-instead when you go to save you have save as something else...

    Can this be done?

  2. #2
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,071
    Hi,

    Yes with an event macro copied in ThisWorkbook module ...

    Please Login or Register  to view this content.
    HTH
    Carim

  3. #3
    Registered User
    Join Date
    12-15-2005
    Posts
    20
    Are you saving your file as a template file? If you open a template, *.xlt, you get a new copy of the opened file and Excel automatically names the new workbook *1.xlt. Now the user have to choose save as, choose file format "template" and manually change the file name to the original name to be able to overwrite it. Do they really do that?

    To prevent overwriting, you can also go outside Excel. Select your file in Windows Explorer and right click and open Properties. Make sure that the checkbox "Write protected" is selected.

  4. #4
    Registered User
    Join Date
    06-14-2004
    Posts
    52

    Protect worksheet function

    I use two methods, the protect worksheet function and I apply a password.
    Before you do that select all cells that you want to be accessible to the user and format protection to unlocked. Then apply tools/protection protect sheet and passowrd it.

    And then I apply as MnO states right click the file in explorer and select read only.

    Though as MnO states that when you open a .xlt file, it opnes as an .xls file unless you open it in explorer via right click "Open" command, then it opens as a .xlt

  5. #5
    Registered User
    Join Date
    12-22-2006
    Location
    Saint Paul, MN
    Posts
    4

    just a suggestion

    I ran into something like that before too. What I did is that I have a script that will replace the file with the original one everyday if the file attribute changes. This will give user a fresh copy of the same file again if someone were to save something to the file.

+ 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