Change the function to something like this:
[VBA]Function IncompleteCells() As String
Dim strCells As String
Dim astrCells(), varItem
astrCells = Array("G2", "G3", "G4", "G5", "G6")
For Each varItem In astrCells
If Sheets("signatures and pricing").Range(varItem) = "" Then strCells = strCells & "," & varItem
Next varItem
If Len(strCells) > 0 Then IncompleteCells = Mid$(strCells, 2)
End Function
[/VBA]
then use:
[VBA]
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Dim strCells as String
strCells = IncompleteCells
If len(strCells) > 0 Then
Cancel = True
MsgBox "Cannot save, these cells are not filled in: " & strCells
Else
Cancel = False
End If
End Sub
[/VBA]
Regards,
Rory