ただし、上記preformatted by Cisco as m/d/yyyy" "h\:mm\:ss AM/PM.のサンプルはその形式と一致しないとのことですが。あなたが与えたサンプルは
5/2/2012 2:55:12 PM
5/2/2012 3:00:00 PM
5/2/2012 3:01:00 PM
5/3/2012 2:56:01 PM
つまり、前にスペースがありますPM
以下のこのコードサンプルは、フォーマットに基づいていますm/d/yyyy h\:mm\:ss AM/PM
コード
Sub Sample()
    Dim ws As Worksheet
    Dim lRow As Long, i As Long
    Dim delRange As Range
    '~~> Set this to the sheet where you have the data
    Set ws = Sheets("Sheet1")
    With ws
        '~~> Sort the data in ascending order
        .Range("A:A").Sort key1:=.Range("A1"), order1:=xlAscending
        '~~> Get the last row
        lRow = .Range("A" & .Rows.Count).End(xlUp).Row
        '~~> loop through the cells
        For i = 2 To lRow
            '~~> Check if date matches
            If Application.Evaluate("=DATE(YEAR(A" & i & "),MONTH(A" & i & "),DAY(A" & i & "))") = _
            Application.Evaluate("=DATE(YEAR(A" & i - 1 & "),MONTH(A" & i - 1 & "),DAY(A" & i - 1 & "))") Then
                '~~> Check if the value is greater
                If .Range("A" & i).Value > .Range("A" & i - 1).Value Then
                    '~~> identify cells to delete
                    If delRange Is Nothing Then
                        Set delRange = .Range("A" & i)
                    Else
                        Set delRange = Union(delRange, .Range("A" & i))
                    End If
                End If
            End If
        Next i
        '~~> Delete cells
        If Not delRange Is Nothing Then delRange.Delete
    End With
End Sub
スクリーンショット
