You can try the following code in your macro -
Dim data As String
Range("A1").Select ''Select a range to check for Null value
data = Range("A1").Value
If data = "" Then
ActiveCell.Value = "0"
Else
MsgBox "Data is OK."
End If
AndreRet
Industrious Poster
4,706 posts since Jan 2008
Reputation Points: 391
Solved Threads: 481
Skill Endorsements: 20