I'm just learning macros in excel and I can't seem to get a certain macro to work. I have one sheet named "Master" that has all the data for the macro on it (donor and proposal information). Column A contains several campaigns in which this donor information is linked to. I would like the macro to pull the rows associated Campaigns in column A and place them on separate sheets (a separate sheet for each campaign). Thank you and I appreciate any help! This is the code I code I've created (with help from internet) and can't seem to get working.
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Columns("A:A")) Is Nothing Then Exit Sub
If Target.Value = "Corporate" Then
Range(Range("A:A" & Target.Row)).Copy _
Sheets("Corporate").Range("A:A" & Rows.Count).End(xlUp).Offset(1, 0)
ElseIf Target.Value = "Individual" Then
Range(Range("A:A" & Target.Row)).Copy _
Sheets("Individual").Range("A:A" & Rows.Count).End(xlUp).Offset(1, 0)
End If
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Columns("A:A")) Is Nothing Then Exit Sub
If Target.Value = "Corporate" Then
Range(Range("A:A" & Target.Row)).Copy _
Sheets("Corporate").Range("A:A" & Rows.Count).End(xlUp).Offset(1, 0)
ElseIf Target.Value = "Individual" Then
Range(Range("A:A" & Target.Row)).Copy _
Sheets("Individual").Range("A:A" & Rows.Count).End(xlUp).Offset(1, 0)
End If
End Sub