Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Save result of IF function | New Users to Excel | |||
Save function in VB | Excel Programming | |||
Save As Function | Excel Programming | |||
Save and Save as Function gone | Excel Programming | |||
'Save As' function / macro | Excel Programming |