In the above code, I have mentioned the condition as: Cell A1 in the first sheet having text as '2funny4words'. Once you are done with writing the code, enter text as indicated above and press Ctrl + S to make a final save. Then, delete that text and you can prevent the workbook from being saved unless someone can see and interpret the macro code, which of course you can password protect.
Surely that will cause a problem?
So you type your code, enter the test "2funny4words" into cell A1 and great, you can save your workbook.
However so can the final user, unless of course you delete the text "2funny4words", so you do that; you open the workbook, delete the text from the cell.... but now what? You can't save the workbook, (that would require the text there), and if you close it without saving, then next time you open the workbook the text will be back 
If you are going to use a keytext like this to allow saving, you will need the macro to remove it BEFORE it does the save:
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
' Test for the 'keytext' to see if saving is allowed
If Sheets(1).cells(1,1).value = "2funny4words" Then
' Text present, saving is allowed
Sheets(1).cells(1,1).value="" ' Delete the keytext
Cancel = False ' Allow the save to take place
Else
' Text not present, saving is not allowed
Cancel = True ' Stop the save from taking place
End If
End Sub
Of course if you find you need to edit the workbook again for some reason, just enter that keytext "2funny4words" into cell A1 and you will be able to save the workbook once.
Bookmarks