Filter by Colors: Sumvisible
Filter by Colors: Sumvisible
FILTER BY COLORS
SUM BY DATES
'starting with the first dates, hide colums until the start dates is found
Do While ActiveCell.Value <> startdates
Selection.EntireColumn.Hidden = True
ActiveCell.Offset(0, 1).Select
Loop
'Stating with the las dates, hide colums until end dates is found
Do While ActiveCell.Value <> enddates
Selection.EntireColumn.Hidden = True
ActiveCell.Offset(0, -1).Select
Loop
ActiveSheet.Calculate
End Sub
Range("AL3").Select
ActiveSheet.Calculate
End Sub