Ask Experts Questions for FREE Help !
Ask
    paulalawton's Avatar
    paulalawton Posts: 2, Reputation: 1
    New Member
     
    #1

    Sep 3, 2008, 05:47 AM
    Stop others using the spreadsheet whilst I am.
    Is there any way I can prevent further copies of a spreadsheet being saved?

    I currently share a spreadsheet with 3 other colleagues, and if I am amending it, and they want to use it then this ends with various different copies being saved and not all data being correct.

    I want to be able to block anyone accessing the spreadsheet if it is already in use, but as yet have not found a way.

    I have tried passwords, but all 3 of us know them so can get around it easily. Any ideas would be appreciated especially as 2 of us are on windows xp professional and one is on vista!!
    StaticFX's Avatar
    StaticFX Posts: 943, Reputation: 74
    Senior Member
     
    #2

    Sep 3, 2008, 06:10 AM
    You can, BUT, this will only work if the Tools>Macro>Security is set to low on all the machines. (meaning it allows macro code to run... )

    when the workbook is open. Hit ALT+F11
    the code window will appear

    Double Click "This workbook" in the project window.
    A Code window will appear.

    Copy/Paste in this:

    Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
    If SaveAsUI Then
    MsgBox "You cannot choose SaveAs. Only Save is allowed"
    Cancel = True
    End If
    End Sub



    then go to the tools menu > Select VBAProject Properties
    select the Protection Tab
    Enter a Password (that they don't know!) then check the Lock Project for viewing
    That will keep them out of the code area

    that code blocks the use of SaveAs. Only allows Save
    paulalawton's Avatar
    paulalawton Posts: 2, Reputation: 1
    New Member
     
    #3

    Sep 3, 2008, 06:55 AM
    Quote Originally Posted by paulalawton
    Is there any way i can prevent further copies of a spreadsheet being saved??

    I currently share a spreadsheet with 3 other colleagues, and if i am amending it, and they want to use it then this ends with various different copies being saved and not all data being correct.

    I want to be able to block anyone accessing the spreadsheet if it is already in use, but as yet have not found a way.

    I have tried passwords, but all 3 of us know them so can get around it easily. Any ideas would be appreciated especially as 2 of us are on windows xp proffesional and one is on vista!!!
    Thanks for your reply, unfortunately it did not work... does anyone else have any further ideas??


    Sorry - it did work - I was just not looking correctly - duh!
    StaticFX's Avatar
    StaticFX Posts: 943, Reputation: 74
    Senior Member
     
    #4

    Sep 3, 2008, 12:35 PM
    It will work, but like I said. The other users have to have low security on the macros. If they change it back to high or medium, they can block the code which will then allow them to save as..
    JBeaucaire's Avatar
    JBeaucaire Posts: 5,426, Reputation: 997
    Software Expert
     
    #5

    Sep 3, 2008, 03:30 PM
    I would recommend you rethink this whole setup. Having multiple people access the same document and not TRAINING THEM to leave it alone when someone else is using it is just nuts.

    Best would be for each of them to have documents of their own they could open at anytime and put in the data they need to update, and then you have a separate document that gathers the info from each of their spreadsheets as it opens to bring it all into one place for you to view/print/report on the results. This is way safer and not hard at all to setup.

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Sex whilst having periods [ 14 Answers ]

Hi Was just wondering, my boyfriend says that sex feels better when you are on your period as you are more sensitive. Is this correct? Also, is it dangerous to have sex while having my period and am I more likely to get pregnant? Thanksx

Benefits whilst on a USA L1 and L2 Visa. [ 1 Answers ]

Hi, I am living in USA with my wife as resident aliens on a L1 visa (Myself) L2 visa (my wife). My question is this. Do you know if we can claim any type of benefits for the fact that we have a child and my wife hasn't worked other than the benefits which we received through the IRS tax return?...

Dreams Whilst Pregnant [ 4 Answers ]

Does anyone else keep haing dreams when there pregnant? Because I have one every night. Last night I had two. 1 was that I was about to be murdered and the second one was after I had the baby and I knew exactly how she looked because we ended up having a little girl and I was trying to breast...

Keep having to 'REFRESH' whilst browsing. [ 10 Answers ]

:) Hi everyone. This is my first ever posting so I hope I'm doing it right. I have had my internet connection for a little over two weeks now and seem to have spent 95% of my time online sorting out 'security' stuff. I have a few final things to tweak and would greatly appreciate anyone's help...


View more questions Search