Still having issues when pasting a range of cells copying through to child sheets. I have included my version of your suggestion and live data. if I copy a row or column and paste below The child sheets do not receive all of the data. The first cell will be populated and thats all.
Private Sub Worksheet_Change(ByVal Target As Range)
Dim childsheets As String
Dim childsheetsarray() As String
Dim uidcol As String
Dim i As Long
Dim uidcolrng As String
Dim childrow As Long
Dim lastrow As Long
''L is a column in the table, I can't imagine that it should be an issue?
'configs to set
uidcol = "L" 'should be same on master and and children. Can be any column you want.
childsheets = "DevTrack,ApproveTrack,ReleaseTrack" 'comma separated list of all the child sheets to affect. Exact names
'----
uidcolrng = uidcol & ":" & uidcol
childsheetsarray = Split(childsheets, ",")
On Error Resume Next
For i = LBound(childsheetsarray) To UBound(childsheetsarray)
If IsError(Application.Match(Cells(Target.Row, uidcol), Sheets(childsheetsarray(i)).Range(uidcolrng), 0)) = True And Trim(Target) <> "" Then
lastrow = 0 'reset
lastrow = Sheets(childsheetsarray(i)).Cells.Find(What:="*", SearchDirection:=xlPrevious, SearchOrder:=xlByRows).Row + 1
If lastrow <> 0 Then
Sheets(childsheetsarray(i)).Cells(lastrow, "L") = Cells(Target.Row, "L")
End If
End If
'add to existing uid rows
If IsError(Application.Match(Cells(Target.Row, uidcol), Sheets(childsheetsarray(i)).Range(uidcolrng), 0)) = False Then
childrow = 0 'reset
childrow = Application.Match(Cells(Target.Row, uidcol), Sheets(childsheetsarray(i)).Range(uidcolrng), 0)
'--------------
'which columns to change on child sheets -- repeat this block for each child sheet
If childsheetsarray(i) = "DevTrack" Then 'conditional naming of EACH child sheet
'see how child copies master? Can change "A" to any column. Can even be different
Sheets(childsheetsarray(i)).Cells(childrow, "A") = Cells(Target.Row, "A")
Sheets(childsheetsarray(i)).Cells(childrow, "B") = Cells(Target.Row, "B")
Sheets(childsheetsarray(i)).Cells(childrow, "C") = Cells(Target.Row, "C")
Sheets(childsheetsarray(i)).Cells(childrow, "D") = Cells(Target.Row, "D")
Sheets(childsheetsarray(i)).Cells(childrow, "E") = Cells(Target.Row, "E")
Sheets(childsheetsarray(i)).Cells(childrow, "F") = Cells(Target.Row, "F")
Sheets(childsheetsarray(i)).Cells(childrow, "G") = Cells(Target.Row, "G")
Sheets(childsheetsarray(i)).Cells(childrow, "H") = Cells(Target.Row, "H")
Sheets(childsheetsarray(i)).Cells(childrow, "I") = Cells(Target.Row, "I")
Sheets(childsheetsarray(i)).Cells(childrow, "J") = Cells(Target.Row, "J")
Sheets(childsheetsarray(i)).Cells(childrow, "K") = Cells(Target.Row, "K")
End If 'DevTrack
'conditional naming of EACH child sheet
If childsheetsarray(i) = "ApproveTrack" Then
'see how child copies master? Can change "A" to any column. Can even be different
Sheets(childsheetsarray(i)).Cells(childrow, "A") = Cells(Target.Row, "A")
Sheets(childsheetsarray(i)).Cells(childrow, "B") = Cells(Target.Row, "B")
Sheets(childsheetsarray(i)).Cells(childrow, "C") = Cells(Target.Row, "C")
Sheets(childsheetsarray(i)).Cells(childrow, "D") = Cells(Target.Row, "D")
Sheets(childsheetsarray(i)).Cells(childrow, "E") = Cells(Target.Row, "E")
Sheets(childsheetsarray(i)).Cells(childrow, "F") = Cells(Target.Row, "F")
Sheets(childsheetsarray(i)).Cells(childrow, "G") = Cells(Target.Row, "G")
Sheets(childsheetsarray(i)).Cells(childrow, "H") = Cells(Target.Row, "H")
Sheets(childsheetsarray(i)).Cells(childrow, "I") = Cells(Target.Row, "I")
Sheets(childsheetsarray(i)).Cells(childrow, "J") = Cells(Target.Row, "J")
Sheets(childsheetsarray(i)).Cells(childrow, "K") = Cells(Target.Row, "K")
End If
If childsheetsarray(i) = "ReleaseTrack" Then
'see how child copies master? Can change "A" to any column. Can even be different
Sheets(childsheetsarray(i)).Cells(childrow, "A") = Cells(Target.Row, "A")
Sheets(childsheetsarray(i)).Cells(childrow, "B") = Cells(Target.Row, "B")
Sheets(childsheetsarray(i)).Cells(childrow, "C") = Cells(Target.Row, "C")
Sheets(childsheetsarray(i)).Cells(childrow, "D") = Cells(Target.Row, "D")
Sheets(childsheetsarray(i)).Cells(childrow, "E") = Cells(Target.Row, "E")
Sheets(childsheetsarray(i)).Cells(childrow, "F") = Cells(Target.Row, "F")
Sheets(childsheetsarray(i)).Cells(childrow, "G") = Cells(Target.Row, "G")
Sheets(childsheetsarray(i)).Cells(childrow, "H") = Cells(Target.Row, "H")
Sheets(childsheetsarray(i)).Cells(childrow, "I") = Cells(Target.Row, "I")
Sheets(childsheetsarray(i)).Cells(childrow, "J") = Cells(Target.Row, "J")
Sheets(childsheetsarray(i)).Cells(childrow, "K") = Cells(Target.Row, "K")
End If
'-------------
End If
Next i
Resume Next
End Sub
PMC # | DESCRIPTION | TICKET ID
| OBJECT ID | APPROVAL | ENHANCEMENT
OR DEFECT | STATUS | TRACK | DEV TEAM | TARGET RELEASE | DEVELOPER | SEQID
DO NOT CHANGE THIS COLUMN |
450585 | Credit Hold Report - Change/Add/Update Credit Hold Report to be more efficient for users | | REP_OTC_OM_004 | YES | | FOT TESTING | OTC | TCS | 2018-March-1.0 | | 1 |
452483 | INVOICE PRINT Change GSA Schedule label on Invoice Print to enable all public sector contracts to use the capability | | REP_OTC_OM_003 | YES | | FOT TESTING | OTC | TCS | 2018-March-1.0 | | 2 |
459505 | Demantra Collection Missed Logic to Calculate Booking History for Forecast Calculation | Defect 16156 | EXT_PSP_PLN_009 | YES | | FOT TESTING | PSP | | 2018-March-1.0 | Bill Smith | 3 |
459505 | Demantra Collection Missed Logic to Calculate Booking History for Forecast Calculation | Defect 16156 | EXT_PSP_PLN_012A | YES | | FOT TESTING | PSP | | 2018-March-1.0 | John Jones | 4 |
459505 | Demantra Collection Missed Logic to Calculate Booking History for Forecast Calculation | Defect 16156 | EXT_PSP_PLN_012B | YES | | FOT TESTING | PSP | | 2018-March-1.0 | Jane Doe | 5 |
462029 | Remove references to Dealer Fee Payments in AP016 & AP004 to enable Payments for Marketing Programs | | INT_RTR_AP_004 | YES | | FOT TESTING | | | 2018-March-1.0 | | 6 |
462029 | Remove references to Dealer Fee Payments in AP016 & AP004 to enable Payments for Marketing Programs | | INT_RTR_AP_016 | YES | | FOT TESTING | | TCS | 2018-March-1.0 | | 7 |
479457 | Def 17901/15605:Tentative schedule fix REP_PSP_PLN_009 - Cancelled ISOs are showing up on the tentative schedule report with no SSD
| | REP_PSP_PLN_009 | YES | | MIG PRD | PSP | TCS | 2018-March-1.0 | | 8 |
<colgroup><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>