M
MrPetreli
I have a very unusual problem with the below code, which for some reaso
changes the date format on all cells in my spreadsheet from dd/mm/yyy
to mm/dd/yyyy. I tried to solve it but not luck with If x.Value
IsDate(x.Value) Then Exit Sub
Sub Uppercase()
Application.ScreenUpdating = False
' Loop to cycle through each cell in the specified range.
Set URange = Selection
For Each x In URange
' Change the text in the range to uppercase letters.
x.Value = UCase(x.Value)
If x.Value = IsDate(x.Value) Then Exit Sub
Next
End Su
changes the date format on all cells in my spreadsheet from dd/mm/yyy
to mm/dd/yyyy. I tried to solve it but not luck with If x.Value
IsDate(x.Value) Then Exit Sub
Sub Uppercase()
Application.ScreenUpdating = False
' Loop to cycle through each cell in the specified range.
Set URange = Selection
For Each x In URange
' Change the text in the range to uppercase letters.
x.Value = UCase(x.Value)
If x.Value = IsDate(x.Value) Then Exit Sub
Next
End Su