Hi everyone out there. I have a report output from an accounting system that I need to clean up and date it. Any help is appreciated.
Column 6 contains transaction dates but not neccessary the last day of the month. I am hoping to use the EMONTH function to turn this date to the last day of the month and output to a range. glDate = 5/27/2011 but what I get is 1/31/1900.
Here are the lines of codes that I have trouble with:
Sub glSort()
FinalRow = Cells(Rows.count, 1).End(XlUp).Row
glDate = Cells(FinalRow, 6).End(XlUp).Value
Cells(2, 13).Resize(FinalRow-2, 1).Formula = Evaluate ("=EMONTH(" & glDate & ",0)")
End Sub
Column 6 contains transaction dates but not neccessary the last day of the month. I am hoping to use the EMONTH function to turn this date to the last day of the month and output to a range. glDate = 5/27/2011 but what I get is 1/31/1900.
Here are the lines of codes that I have trouble with:
Sub glSort()
FinalRow = Cells(Rows.count, 1).End(XlUp).Row
glDate = Cells(FinalRow, 6).End(XlUp).Value
Cells(2, 13).Resize(FinalRow-2, 1).Formula = Evaluate ("=EMONTH(" & glDate & ",0)")
End Sub
Last edited: