Hi,
I need to incorporate this one offset in code bellow. It is marked bold.
The issue is after the page on worksheet is done with input data cell K55, active cell goes to F56.
If it is possible I need to move it to next page in sheet, and then continue data input according to sub.
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
With Target
'declare condition to exit sub: single cell + value>0
If .Count > 1 Then Exit Sub
If Not IsNumeric(Target) Then Exit Sub
If .Value <= 0 Then Exit Sub
If .Row > 150 Then Exit Sub
' If do not want trigger change from row n (i.e, from row 10).
'If .Count > 1 Or Not IsNumeric(Target) Or .Value <= 0 Or .Row > 10 Then Exit Sub
Select Case .Column
Case 7, 9 'column F or H
.Offset(0, 2).Select
Case 11 'column I
.Offset(1, -4).Select
Case Else
Exit Sub
End Select
End With
' On error resolving type mismatch error 13
' If Range("K55").Value > 0 Then Range("F56").Offset(13, 1).Select
End Sub
I need to incorporate this one offset in code bellow. It is marked bold.
The issue is after the page on worksheet is done with input data cell K55, active cell goes to F56.
If it is possible I need to move it to next page in sheet, and then continue data input according to sub.
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
With Target
'declare condition to exit sub: single cell + value>0
If .Count > 1 Then Exit Sub
If Not IsNumeric(Target) Then Exit Sub
If .Value <= 0 Then Exit Sub
If .Row > 150 Then Exit Sub
' If do not want trigger change from row n (i.e, from row 10).
'If .Count > 1 Or Not IsNumeric(Target) Or .Value <= 0 Or .Row > 10 Then Exit Sub
Select Case .Column
Case 7, 9 'column F or H
.Offset(0, 2).Select
Case 11 'column I
.Offset(1, -4).Select
Case Else
Exit Sub
End Select
End With
' On error resolving type mismatch error 13
' If Range("K55").Value > 0 Then Range("F56").Offset(13, 1).Select
End Sub