I've made a macro that pulls date-values out from one Array (SearchBondArray) if a certain condition is met. The loop then adds the date from one array to TempDateArray, while making sure that the TempDateArray is expanding as more dates are added.
When the entire array is searched through, and no more dates are to be added. The Array is then pasted into a range in an Excel Sheet.
The issue is that when the dates are pasted into the excel sheet, the format is no longer dates but Text. And thus the sorting formula in the end can't sort the data by most recent date.
Any idea on how to make sure that the values posted are still formatted as dates?
Please Login or Register to view this content.
Bookmarks