I want to select cells and turn them upper case. the cells selected will change each time.
I have tried a few things and had no luck
the first way it did not want to do it bc I think my use of the range variable in the actual command is not right.
then I saw where someone was able to use one line to take the selected cells and make them proper case...I tried to convert to upper case and it did not work
I have tried a few things and had no luck
the first way it did not want to do it bc I think my use of the range variable in the actual command is not right.
HTML:
'set range based on selected cells
Set Rng = Selection
'Loop to cycle through each cell in the specified range.
For Each x In Range(Rng)
'Change the text in the range to uppercase letters.
x.Value = UCase(x.Value)
' Next
then I saw where someone was able to use one line to take the selected cells and make them proper case...I tried to convert to upper case and it did not work
HTML:
Selection.Value = Application.UCase(Selection.Value)