No save function if
Hello all.
I'm looking to write something that will not allow the user to save the sheet if things are not completed correctly. At the moment I have this but it doesnt seem to work.
in G9 on sheet 1
=IF(ISBLANK(B9),"",IF(OR(ISBLANK(B9),ISBLANK(C9),I SBLANK(D9),ISBLANK(E9),ISBLANK(F9)),"Not Complete","Complete"))
Which works fine. The issue is this......
[vba]Private Sub Workbook_BeforeSave(Cancel As Boolean)
If Sheet1.Range("G9").Value = "Not Complete" Then
MsgBox "Cannot save until ALL cells have been completed!"
Cancel = True
End If
End Sub[/vba]
Any advice is greatly recieved.
Many thanks
Jeff
|