ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Change Lowercase or Proper to ALL CAPS (https://www.excelbanter.com/excel-programming/376761-change-lowercase-proper-all-caps.html)

Don

Change Lowercase or Proper to ALL CAPS
 
How do I change all lowercase or Proper formatted cells to ALL CAPS?

Don



Tom Ogilvy

Change Lowercase or Proper to ALL CAPS
 
Dim cell as Range
for each cell in selection.SpecialCells(xlConstants,xlTextValues)
cell.Value = Ucase(cell.value)
Next

would be the basic approach.

--
Regards,
Tom Ogilvy

"Don" wrote in message
...
How do I change all lowercase or Proper formatted cells to ALL CAPS?

Don




Don

Change Lowercase or Proper to ALL CAPS
 
Thanks Tom........and if needing to change it to "Proper"?

Don
"Tom Ogilvy" wrote in message
...
Dim cell as Range
for each cell in selection.SpecialCells(xlConstants,xlTextValues)
cell.Value = Ucase(cell.value)
Next

would be the basic approach.

--
Regards,
Tom Ogilvy

"Don" wrote in message
...
How do I change all lowercase or Proper formatted cells to ALL CAPS?

Don






Chip Pearson

Change Lowercase or Proper to ALL CAPS
 
Don,

Try

cell.Value = StrConv(cell.Value, vbProperCase)


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
www.cpearson.com
(email address is on the web site)

"Don" wrote in message
...
Thanks Tom........and if needing to change it to "Proper"?

Don
"Tom Ogilvy" wrote in message
...
Dim cell as Range
for each cell in selection.SpecialCells(xlConstants,xlTextValues)
cell.Value = Ucase(cell.value)
Next

would be the basic approach.

--
Regards,
Tom Ogilvy

"Don" wrote in message
...
How do I change all lowercase or Proper formatted cells to ALL CAPS?

Don









All times are GMT +1. The time now is 09:01 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com