Hi, would someone please help me understand why my column "G" that has a custom value set to "h:mm:ss" has a VarType of double? I am trying to filter for rows that fall between my start hour and end hour, but I cant seem to get the types to match. Looking at a cell value in column "G", it shows "23:00:00", and upon clicking into the cell it shows "11:00:00 PM". I've tried man different variations with TimeSerial as but can't seem to get them to match.
dtStartTime = Format(TimeSerial(intStartHour, 0, 0), "h:mm:ss") dtEndTime = Format(TimeSerial(intEndHour, 0, 0), "h:mm:ss") .AutoFilter Field:=7, Criteria1:=">" & dtEndTime, Operator:=xlAnd, Criteria2:="<=" & dtStartTime .Offset(1, 0).SpecialCells(xlCellTypeVisible).EntireRow.Delete shData.AutoFilterMode = False