So, Iβve gotten partially through this and then will change nothing in the script and suddenly it will error again. I worked for hours on it and canβt figure out why.
Long story short, I have a list of orders that I would like to separate into 5 other tabs. I had it set up where if I put β1β into column 13 and hit enter, it would disappear in the original list and go to one tab, and β2β to another tab, so on and so forth.
Iβve read through so many articles and forums and itβs hurting my brain. Iβm getting object errors after the first 2-3 inputs. What am i doing wrong?
EDIT: only the last tab (Sheet 6) is working. Iβm trying to figure out how to fix the rest
EDIT POST WITH CODE:
Private Sub Worksheet_Change(ByVal Target As Range) If Target.Column = 13 And Target.Cells.Count = 1 Then If LCase(Target.Value) = "1" Then With Target.EntireRow .Copy Sheets("(1) Sheet 2").Range("A" & Rows.Count).End(xlUp).Offset(1, 0) .Delete End With End If End If If Target.Column = 13 And Target.Cells.Count = 1 Then If LCase(Target.Value) = "2" Then With Target.EntireRow .Copy Sheets("(2) Sheet 3").Range("A" & Rows.Count).End(xlUp).Offset(1, 0) .Delete End With End If End If If Target.Column = 13 And Target.Cells.Count = 1 Then If LCase(Target.Value) = "3" Then With Target.EntireRow .Copy Sheets("(3) Sheet 4").Range("A" & Rows.Count).End(xlUp).Offset(1, 0) .Delete End With End If End If If Target.Column = 13 And Target.Cells.Count = 1 Then If LCase(Target.Value) = "4" Then With Target.EntireRow .Copy Sheets("(4) Sheet 5").Range("A" & Rows.Count).End(xlUp).Offset(1, 0) .Delete End With End If End If If Target.Column = 13 And Target.Cells.Count = 1 Then If LCase(Target.Value) = "5" Then With Target.EntireRow .Copy Sheets("(5) Sheet 6").Range("A" & Rows.Count).End(xlUp).Offset(1, 0) .Delete End With End If End If End Sub