Try something like this (not tested)
Sub Ocupado()
Dim cell As Range, rngCalandarDate As Range
'Clear previous date highlights
ActiveSheet.Range("F6:AJ11,F15:AJ20,F24:AJ29").Interior.ColorIndex = xlNone
With Sheets("Database")
If .FilterMode Then .ShowAllData
'Filter the database for local
.Range("A:B").AutoFilter Field:=1, Criteria1:=ActiveSheet.Range("C6").Value
'Loop through each local date if any
If .Range("B" & Rows.Count).End(xlUp).Row > 1 Then
For Each cell In .Range("B2", .Range("B" & Rows.Count).End(xlUp)).SpecialCells(xlCellTypeVisible)
'Highlight matched dates on the calandar
Set rngCalandarDate = ActiveSheet.Range("F6:AJ29").Find(cell.Value, , xlFormulas, xlWhole)
If Not rngCalandarDate Is Nothing Then
rngCalandarDate.Interior.Color = vbYellow
End If
Next cell
End If
If .FilterMode Then .ShowAllData
End With
End Sub
Bookmarks