Trying to create code that stop's saving over a file based upon an event
Posted by Would appreciate it on February 05, 2002 12:22 PM
What I'm trying to do is write a small code that basically
Stops Excel from saving over a file & forces the user to
save it under a different name.
Here's my feeble attempt, but I don't seem to getting very
far
*****************************************************
Dim kill_close As String
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
kill_close = "NONONO"
If kill_close = "NONONO" Then
MsgBox "Kill"
Stop
End If
End Sub
************************************************
Thxs for the help