.
Here is a representation of some of the code :
Option Explicit
Sub AddDeposit()
ActiveCell.Value = ActiveCell.Offset(0, -1).Value + ActiveCell.Offset(0, 1).Value
CopyChargesOwnTab
End Sub
Sub CopyChargesOwnTab()
Application.ScreenUpdating = False
Dim i As Long
Dim Lastrow As Long
On Error Resume Next
Lastrow = ActiveSheet.Cells(Rows.Count, "A").End(xlUp).Row
Dim ans As String
For i = 2 To Lastrow
ans = ActiveSheet.Cells(i, 1).Value
ActiveSheet.Rows(i).EntireRow.Copy Sheets(ans).Rows(Sheets(ans).Cells(Rows.Count, "A").End(xlUp).Row + 1)
Next
Application.ScreenUpdating = True
Exit Sub
M:
MsgBox "No such sheet as " & ans & " exist"
Application.ScreenUpdating = True
End Sub
The completed workbook is attached.
Review the instructions / comments on the first sheet. Let me know if you have any questions.
Bookmarks