Does anyone have a MACRO or simple solution to change all UPPERCASE text in a cell into Proper format (1st letter of word is capatalized and rest are lower case).
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Change all Text to PROPER format in a column
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Change all Text to PROPER format in a column
- This topic has 5 replies, 5 voices, and was last updated 22 years, 5 months ago by
simkins_michael.
AuthorTopicViewing 4 reply threadsAuthorReplies-
WSJohnBF
AskWoody Lounger -
WSdcardno
AskWoody LoungerIf you are doing this on a one-time basis, John’s suggestion is th way to go. If you are doing this often, try the code in
http://www.wopr.com/cgi-bin/w3t/showthread…d&sb=5#Post1143%5B/url%5Dbut change the “Upper(Cell.Value)” function to “Application.Proper(Cell.Value)”
This will convert the selected cells from upper- or mixed-case to proper case. That thread is not a bad place to start looking at VBA macros for this sort of thing. If you are having a hard time linking to that post, the whole code would like like this:
****
Sub ConvertToUpper()
On Error GoTo errConvertToUpper
Dim Cell As Range
For Each Cell In Selection
If Not Cell.HasFormula Then Cell.Value = Application.Proper(Cell.Value)
Next Cell
exitConvertToUpper:
Exit Sub
errConvertToUpper:
If Err.Number = 438 Then
MsgBox “You probably don’t have cell(s) selected”, vbExclamation, “Selection Alert”
Resume exitConvertToUpper
End If
MsgBox Err.Number & ” ” & Err.Description
Resume exitConvertToUpper
End Sub****
-
WSMaryJ
AskWoody Lounger -
WSTomG
AskWoody LoungerI provided some code in the VBA forum for UPPER, however since you asked here, I’ll provide my version of dcardno’s answer. (I prefer to use the VBA function StrConv, since there’s no VBA Proper like there is UCase and LCase)
How about this:
Sub ConvertToProper() On Error GoTo errConvertToProper Dim Cell As Range For Each Cell In Selection If Not Cell.HasFormula Then Cell.Value = StrConv(Cell.Value, vbProperCase) Next Cell exitConvertToProper: Exit Sub errConvertToProper: If Err.Number = 438 Then MsgBox "You probably don't have cell(s) selected", vbExclamation, "Selection Alert" Resume exitConvertToProper End If MsgBox Err.Number & " " & Err.Description Resume exitConvertToProper End Sub
HTH
-
simkins_michael
Guest
Viewing 4 reply threads - This topic has 5 replies, 5 voices, and was last updated 22 years, 5 months ago by
-

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Just a fyi – I think I’ll skip on an Apple Vision Pro hardware section
by
Susan Bradley
5 hours, 6 minutes ago -
What’s wrong with Windows 11?
by
Ascaris
3 hours, 16 minutes ago -
Streaming an iPad to a standard TV
by
MrJimPhelps
57 minutes ago -
clone to make backup laptop
by
greenbergman
9 hours, 47 minutes ago -
Problems with sound and USB ports
by
StavRoss
9 hours, 13 minutes ago -
Can you use WUShowHide on Windows 11 version 21H2?
by
southieguy
5 hours, 40 minutes ago -
Can we control the changes to our operating systems?
by
Susan Bradley
5 hours, 41 minutes ago -
Watch out for fake ‘Windows Defender’ scare
by
B. Livingston
5 hours, 2 minutes ago -
Diagnostics and testing? Get it all done in a flash.
by
Ben Myers
16 minutes ago -
Dip your toe into Visio Online
by
Peter Deegan
9 hours, 22 minutes ago -
Updating Win 10 Pro 21H2 to 22H2
by
bsqrd
7 hours, 23 minutes ago -
Changing mouse pointer options.
by
Artie
10 hours, 40 minutes ago -
Desktop or Laptop? What’s your choice?
by
Susan Bradley
1 hour, 23 minutes ago -
Anyone use Auslogics Bitreplica
by
WSjcgc50
1 day, 20 hours ago -
Unleashing the Gaming Revolution: CrossOver Mac’s DirectX 12 Support Update!
by
Alex5723
2 days, 9 hours ago -
Defender’s Offline Scan Fails to Run
by
E Pericoloso Sporgersi
1 day, 15 hours ago -
Mouse problem : cannot grab a window without maximizing it
by
Andy M
1 day, 22 hours ago -
End of support for Cortana in Windows
by
Alex5723
1 day, 8 hours ago -
Microsoft is really missing an advertising trick
by
Sky
2 days, 8 hours ago -
New MOVEit Transfer zero-day mass-exploited in data theft attacks
by
Alex5723
3 days, 8 hours ago -
Windows 11 Insider Preview build 25381 released to Canary
by
joep517
3 days, 8 hours ago -
Authenticating Email Address
by
IreneLinda
2 hours, 48 minutes ago -
Confusion about password protecting a folder in W10
by
Cthru
3 days, 11 hours ago -
I broke my right arm yesterday
by
Alex5723
1 day, 11 hours ago -
Kaspersky : iOS devices targeted with previously unknown malware
by
Alex5723
3 days, 7 hours ago -
Which Updates From Each List Are Safe to Install ?
by
TheFamilyIT
1 day ago -
AOL changes its web based email
by
Charlie
3 days, 6 hours ago -
Windows 11 Insider Preview build 23471 released to DEV
by
joep517
4 days, 9 hours ago -
Windows 11 Insider Preview Build 22621.1830 and 22624.1830 released to BETA
by
joep517
4 days, 9 hours ago -
Spyboy Defense Evasion Tool Advertised Online
by
Alex5723
4 days, 16 hours ago
Recent blog posts
- Can we control the changes to our operating systems?
- Watch out for fake ‘Windows Defender’ scare
- Diagnostics and testing? Get it all done in a flash.
- Dip your toe into Visio Online
- Desktop or Laptop? What’s your choice?
- Beware of Google’s .ZIP domain and password-embedded URLs
- Longstanding feature requests, and their status
- Three typing tutors — no more “hunt and peck”
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2023 by AskWoody Tech LLC. All Rights Reserved.