VBA Filter Partial String Containing Date
问题 I need to filter Col A based on a PARTIAL STRING. The user needs to be able to filter for YEAR only ... or YEAR & MONTH ... or YEAR & MONTH & DAY YEAR ONLY : 20 YEAR & MONTH : 2002 YEAR & MONTH & DAY : 200206 The following will filter the year or the year & month .... it fails to filter for year / month / day. Thank you for looking. Sub FiltDate() Dim strName As String Dim range_to_filter As Range On Error Resume Next Set range_to_filter = Range("A2:A500000") 'Sheet4. Dim ret As String Dim