Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("A5")) Is Nothing Then
If Target.Cells.Count > 1 Or IsEmpty(Target) Then Exit Sub
Range("B1").Select
End If
End Sub
No bro.. I asked for VBA. but my question was wrong. i should have to asked is there any other coding like that?.
Thanks for that previous answer bro. working fine. I just ask for my knowledge
Thanks with Regards
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("A5")) Is Nothing Then
If Target.Cells.Count > 1 Or IsEmpty(Target) Then Exit Sub
Target.Offset(-4, 1).Select
End If
End Sub
TextBox1.SetFocus
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("A5")) Is Nothing Then
If Target.Cells.Count > 1 Or IsEmpty(Target) Then Exit Sub
Application.Goto Range("B1")
End If
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
'Version 2
If Not Intersect(Target, Range("A5")) Is Nothing Then
If Target.Cells.Count > 1 Or IsEmpty(Target) Then Exit Sub
Range("B1").Select
End If
If Not Intersect(Target, Range("C7")) Is Nothing Then
If Target.Cells.Count > 1 Or IsEmpty(Target) Then Exit Sub
Range("B1:B5").Sort Key1:=Range("B1"), Order1:=xlDescending, Header:=xlNo
End If
End Sub