I have it working (kinda).
It separates the data the way I want it to (Except breaking down the Community Services sheet).
Here's the code I've come up with -- likely needs some finessing.
Code
Sub transferdata()
Dim dRng As Range 'range for department headings on "Needed Info" sheet
Dim aRng As Range 'range for data on Alldata sheet
Dim dWs As Worksheet 'Needed Info Worksheet
Dim aWs As Worksheet 'AllData Worksheet
Dim aLastrow As Long
'Dim cRow As Double
Dim Number As Long
Dim cLetter As String
Dim vRow As Long
Set aWs = ThisWorkbook.Sheets("Alldata")
Set dWs = ThisWorkbook.Worksheets("Needed Info")
Set dRng = dWs.Range("A1:G1") 'just to give it a value
aLastrow = aWs.Cells(Rows.Count, "A").End(xlUp).Row
Set aRng = aWs.Range("A1:R" & aLastrow)
'Set the range for each column (1 per iteration)
For Each c In dRng
V = c.Value
vRow = 0
cNumber = c.Column
cLetter = Split(Cells(1, cNumber).Address, "$")(1)
vRow = Sheets("Needed Info").Cells(Rows.Count, cLetter).End(xlUp).Row
Set dRng = Sheets("Needed Info").Range(cLetter & "2:" & cLetter & vRow)
'MsgBox dRng.Address
For Each cll In dRng
aWs.Activate
With aRng
'MsgBox aRng.Address
.AutoFilter 15, cll
.Offset(1).SpecialCells(12).Copy Sheets(c.Value).Cells(Rows.Count, 1).End(xlUp).Offset(1)
Worksheets("Alldata").ShowAllData
End With
Next cll
Set dRng = dRng.Offset(0, 1)
' Stop
Next c
End Sub
Display More
I still need to remove the columns, autocolumn width and create workbooks for each of the Manager names (community Services).
But, so far it seems to be going well.
Thank you
Terry