Hi AMDanger,
Try this code in the "ThisWorkbook" module:
Option Explicit
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
Dim wr As Worksheet: Set wr = ThisWorkbook.Worksheets("The Great Repository")
Dim c As Long, r As Long, S As String: S = Sh.Name
If Sh.Name = wr.Name Then Exit Sub
If InStr(1, S, "Client ") Then _
S = LCase(Replace(S, "Client ", ""))
If Sh.Cells(Target.Row, 2) <> "" And CSng(Sh.Cells(Target.Row, 3)) <> 0 Then
c = 2: Do Until wr.Cells(3, c) = S: c = c + 1: Loop
r = 4: Do Until wr.Cells(r, 1) = "": r = r + 1: Loop
Application.EnableEvents = False
wr.Cells(r, 1) = Sh.Cells(Target.Row, 2): wr.Cells(r, c) = CSng(Sh.Cells(Target.Row, 3))
Application.EnableEvents = True
End If: End Sub
Directions for running the routine(s) just supplied
Copy the code to the clipboard
Press ALT + F11 to open the Visual Basic Editor.
Save your Workbook As Macro-Enabled
Select “ThisWorkbook" from the Insert menu
Paste the code in the whitespace of the module
And you're ready to go!
Bookmarks