Format column with date to specific format - Excel VBA
问题 I am writing an excel vba macro. I have a large worksheet with over 10,000 rows. One of the columns has the date in this format: 10/28/13 06:57 with the Cells having a General Number for formatting. I would like to format it to have only four digits in this format: mmdd (1028 for the example above) Here is what I have so far in the subroutine: ' This subroutine formats the columns to what is necessary for output Sub formatColumns() ' Set the LastRow variable to hold the last row number