Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
I have a very unusual problem with the below code, which for some reason changes the date format on all cells in my spreadsheet from dd/mm/yyyy 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 Sub |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
MrPetreli formulated the question :
I have a very unusual problem with the below code, which for some reason changes the date format on all cells in my spreadsheet from dd/mm/yyyy to mm/dd/yyyy. I tried to solve it but not luck with If x.Value = IsDate(x.Value) Then Exit Sub Try... Sub Uppercase() Application.ScreenUpdating = False Dim x As Range For Each x In Selection If Not IsDate(x.Value) Then x.Value = UCase(x.Value) Next 'x Application.ScreenUpdating = True End Sub -- Garry Free usenet access at http://www.eternal-september.org ClassicVB Users Regroup! comp.lang.basic.visual.misc microsoft.public.vb.general.discussion |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
custom format - month as uppercase | Excel Discussion (Misc queries) | |||
Need an UPPERCASE format ability in Excel just like Word | Excel Discussion (Misc queries) | |||
How to format cells for uppercase entry | New Users to Excel | |||
Format cell to uppercase using code | Excel Programming | |||
Excel Date in uppercase | Excel Worksheet Functions |