Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim curr_row As Long, curr_col As Long, prev_row As Long
curr_row = Selection.Row
curr_col = Selection.Column
prev_row = curr_row - 1
If prev_row > 0 And curr_col = 1 Then
If Trim(Cells(prev_row, 1)) = "" Then
MsgBox ("Please enter a value in the previous cell")
Cells(prev_row, 1).Select
End If
End If
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
With Target
If .Column <> 1 Then Exit Sub
If .Row > 1 Then
With .Offset(-1)
If .Value = "" Then .Select
End With
End If
End With
End Sub