irrefutable14
New Member
- Joined
- Mar 2, 2017
- Messages
- 25
I'm scanning ID & Username into "column A1" the vba then moves the cursor to the right to "column b" finally down to
"A2,B2,etc.... But if I make an error of some sort and click on the cell to delete the ID or Username this Run-time error
'1004': Application-defined or object-defined error pops up? What can I do to get rid of it?
"A2,B2,etc.... But if I make an error of some sort and click on the cell to delete the ID or Username this Run-time error
'1004': Application-defined or object-defined error pops up? What can I do to get rid of it?
Code:
code:
Private Sub Worksheet_Change(ByVal Target As Range)
MoveRight = MoveRight + 1
If MoveRight < 2 Then
Target.Offset(0, 1).Select
Else
Target.Offset(1, -MoveRight + 1).Select
MoveRight = 0
End If
End Sub