Hi again
I would very much appreciate further help regarding a macro, please
In a previous post, https://www.mrexcel.com/forum/excel...ange-sheets-jan-dec-whichever-actve-time.html Osvaldo Palpeiro helped me with a macro which would put rows in date order, based on the day of the month recorded in 'B' column. It seemed to work well BUT, now, due to more activity, the days of the month include double figure numbers, ie '23', '30' etc so the 'Sort Date' is put in the older computer order, ie 1-9, then 10-19, then 20-19, 30-31, which isn't the Date Order I had anticipated.
Can someone please tell me how I can achieve 1-31 (ie 1-9, 10-19, 20-29, 30-31) order, as I had expected, please?
My code is as follows:
Many thanks for any help with this
%
I would very much appreciate further help regarding a macro, please
In a previous post, https://www.mrexcel.com/forum/excel...ange-sheets-jan-dec-whichever-actve-time.html Osvaldo Palpeiro helped me with a macro which would put rows in date order, based on the day of the month recorded in 'B' column. It seemed to work well BUT, now, due to more activity, the days of the month include double figure numbers, ie '23', '30' etc so the 'Sort Date' is put in the older computer order, ie 1-9, then 10-19, then 20-19, 30-31, which isn't the Date Order I had anticipated.
Can someone please tell me how I can achieve 1-31 (ie 1-9, 10-19, 20-29, 30-31) order, as I had expected, please?
My code is as follows:
Code:
Sub Date_Order_1()
'
' Date_Order Macro
' Puts Date (Column B) in ascending order
'
' Keyboard Shortcut:
With ActiveSheet
.Unprotect
.[A16:BZ115].Sort Key1:=[B16], Order1:=xlAscending
.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True
End With
End Sub
Many thanks for any help with this
%