My spreadsheet sources data from the US, which includes US formatted dates (mm/dd/yyyy). We have a CorrectDate function (e.g. CorrectDate (F4) ) which comes as an Addin to change this to a UK format (dd/mm/yyyy), but I want to add a button to the toolbar so that when a cell is highlighted, & the button clicked, a Macro runs to automatically re-format this.
I tried using
ActiveCell.Value = CorrectDate(ActiveCell.Name)
where ActiveCell.Name is the cell highlighted e.g. A2
Ta
Gary
I tried using
ActiveCell.Value = CorrectDate(ActiveCell.Name)
where ActiveCell.Name is the cell highlighted e.g. A2
Ta
Gary