Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Diana Alexander   on Oct 01 In MS Office Category.

  
Question Answered By: Hoor Khan   on Oct 01

Try This

Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("A:A")) _
Is Nothing Then Exit Sub
If IsEmpty(ActiveSheet.Cells(Target.Row, 1)) _
And Target.Value <> "" Then
MsgBox "You must complete column  A first", vbOKOnly, "Error!"
Target.Value = ""
ActiveSheet.Cells(Target.Row, 1).Activate
End If
End Sub

Share: 

 

This Question has 2 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Validation list Or get search suggestion and latest updates.


Tagged: