I have the following code which updates/copies the cell containing date with format "09-SEP-2003" from another sheet:
If cstsDoss_val <> Doss_val Then
ws1.Cells(R, 7).Replace _
What:=Doss_val, Replacement:=cstsDoss_val, _
SearchOrder:=xlByColumns, MatchCase:=False
Else
Doss_val = Doss_val
End If
Somehow after replacing or updating the date value the date shows as "04-SEP-2003" but somehow in the formula bar it shows as 4/9/2003 and when I compare the worksheet cells it shows that these two values are different and again updates with the same thing putting an extra load on the update function for all the values.
Any thoughts on how to keep the value as "04-SEP-2003" even in the formula bar although putting Format(ws1.cells(R,5).Value, "dd-mmm-yyyy"
didn't help.
Thanks in advance.
Tek
If cstsDoss_val <> Doss_val Then
ws1.Cells(R, 7).Replace _
What:=Doss_val, Replacement:=cstsDoss_val, _
SearchOrder:=xlByColumns, MatchCase:=False
Else
Doss_val = Doss_val
End If
Somehow after replacing or updating the date value the date shows as "04-SEP-2003" but somehow in the formula bar it shows as 4/9/2003 and when I compare the worksheet cells it shows that these two values are different and again updates with the same thing putting an extra load on the update function for all the values.
Any thoughts on how to keep the value as "04-SEP-2003" even in the formula bar although putting Format(ws1.cells(R,5).Value, "dd-mmm-yyyy"
didn't help.
Thanks in advance.
Tek