Sub Activate()
Worksheets("Data").Select
Dim i As Integer
i = 1
While Cells(i, 1).Value <> ""
If Cells(i, 4).Value = "4131581" & Cells(i, 13).Value = "Deposit" Then
Cells(i, 1).Value = "L14c"
i = i + 1
Else
i = i + 1
End If
Wend
End Sub
While Cells(i, 1).Value <> ""
If Cells(i, 4).Value = "4513973" Then
Cells(i, 11).Value = Cells(i, 11) * -1
i = i + 1
Else
i = i + 1
End If
Wend
Private Sub CommandButton1_Click()
Worksheets("Data").Select
Dim i As Long
i = 1
While Cells(i, 1).Value <> ""
If Cells(i, 4).Value = "4131581" And Cells(i, 13).Value = "Deposit" Then
Cells(i, 1).Value = "L14c"
i = i + 1
ElseIf Cells(i, 4).Value = "4378014" And Cells(i, 13).Value = "Deposit" Then
Cells(i, 1).Value = "L14c"
i = i + 1
ElseIf Cells(i, 4).Value = "4193174" And Cells(i, 13).Value = "Deposit" Then
Cells(i, 1).Value = "L14c"
i = i + 1
ElseIf Cells(i, 4).Value = "4193014" And Cells(i, 13).Value = "Deposit" Then
Cells(i, 1).Value = "L14c"
i = i + 1
ElseIf Cells(i, 4).Value = "4513973" Then
Cells(i, 11).Value = Cells(i, 11) * -1
i = i + 1
ElseIf Cells(i, 4).Value = "4494550" Then
Cells(i, 11).Value = Cells(i, 11) * -1
i = i + 1
ElseIf Cells(i, 4).Value = "4510417" Then
Cells(i, 11).Value = Cells(i, 11) * -1
i = i + 1
Else
i = i + 1
End If
Wend
End Sub