In Excel, I have three columns:
column1, column2, column3
I am entering data into excel using a barcode scanner that is attached to an IPAD. The barcode scanner sends ENTER
after every scan. I believe that I can set excel up such that ENTER
would cause the next column to be selected (instead of the next row)
However, I do not know how to have it go to the next row after there is an ENTER
detected in column3
. Right now I have this:
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
If Target.Column = 3 Then
If Target.Value = "{enter}" Then
MsgBox "SDf"
End If
End If
End Sub
But Target.Value
detects only the string inside the cell, it does not detect what has been pressed.
How do I get the next row to be selected after ENTER
is detected in column 3
?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…