Public Function FormComplete(ByVal rngCells As Range) As Boolean
Dim rngCell As Range
FormComplete = True
For Each rngCell In Intersect(rngCells, rngCells.Parent.UsedRange)
If Not rngCell.Locked Then
FormComplete = CBool(Len(rngCell.Value))
If Not FormComplete Then Exit Function
End If
Next rngCell
End Function
Sub Example()
If FormComplete(Range("A1:B4")) Then
MsgBox "OK - run macro"
'run macro
Else
MsgBox "Emplty cells, halt!"
End If
End Sub
Just read it all again, sorry that was a daft question.. works brilliant thanks very much....
Mark