I have the following loop
The issue is the cells that have a value, 04-03-07, for example stay as is. Why is that? When I test the function as a formula in a cell it works fine.
Thanks
Code:
For Each DQCellRng in Range(Range("N2",Range("N" & DQLast))
If DQCellRng.Value = "" then
DQCellRng.Value = ""
Else
DQCellRng.Value = Application.Text(DQCellRng.Value,"yyyy-mm-dd")
End If
Next DQCellRng
The issue is the cells that have a value, 04-03-07, for example stay as is. Why is that? When I test the function as a formula in a cell it works fine.
Thanks