All, I need to use a private sub worksheet_change(byval target as range) for Columns B & C. This code needs to change all data input into Column B & C to the date format of "yyyymmdd".
Any suggestions? The below code isnt working...
Any suggestions? The below code isnt working...
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim Cell As Range
On Error Resume Next
Application.EnableEvents = False
Cell = Range("B:C")
For Each Cell In Target
Cell = NumberFormat."yyyymmdd"(Cell)
Next
Application.EnableEvents = True
End Sub