0
Good afternoon, how do I order the times chronologically without affecting the dates in excel, using Visual Basic?
I have a spreadsheet where are saved the entries I do by VBA. In column G are the 'Payment Dates'. What I would like is for these dates to be ordered chronologically. As exemplified below:
I tried to create a macro and reuse the base code to make my listing appear in chronological order but it didn’t work.
My code is as follows:
With ActiveWorkbook.Worksheets("Planilha2").Sort
.SetRange Range("G2:G")
.Header = xlNo
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
I started playing with Visual Basic just a few days ago, I’m still a beginner. Can someone help me?
This answers your question? Chronologically order VBA date and time
– danieltakeshi
Worse than no face, I had already come to that answer before. But thanks for the answer.
– Gabriel Ábrego