Does anyone know of a macro to change text case (capitalize, first letter of a word, etc.) that mimics the SHIFT F3 function in Word? Thanks in advance for any help with this.
![]() |
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 text case (Excel 2000)
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Change text case (Excel 2000)
- This topic has 5 replies, 6 voices, and was last updated 22 years, 11 months ago.
Viewing 4 reply threadsAuthorReplies-
WSHansV
AskWoody LoungerJune 19, 2002 at 1:21 pm #595727Here is a rather crude macro. Perhaps you or another lounger can use it as a starting point.
It checks the first two characters of each cell in the selection to decide how to modify capitalization.
If the first characters aren’t alphabetic, it changes the value to upper case – this clearly leaves room for improvement.You can assign the macro to a keyboard shortcut and/or toolbar button.
Note: Shift+F3 is already taken: it inserts a function into a formula. Alt+F3 is free.
Sub ChangeCase()
Dim rng As Range
Dim opt As Integer
Dim str As String
Dim asc1 As Byte
Dim asc2 As Byte
For Each rng In Selection
str = Trim(rng.Value)
If str “” Then
If rng.HasFormula = False Then
opt = 0
asc1 = Asc(Left(str, 1))
If Len(str) = 1 Then
If asc1 >= 97 And asc1 = 65 And asc1 = 97 And asc1 = 65 And asc1 = 97 And asc2 = 65 And asc2 <= 90 Then
' current: upper case, switch to: lower case
opt = vbLowerCase
End If
End If
End If
If opt = 0 Then
opt = vbUpperCase
End If
rng.Value = StrConv(rng.Value, opt)
End If
End If
Next
End Sub -
H. Legare Coleman
AskWoody Plus -
WSJohnBF
AskWoody LoungerJune 19, 2002 at 2:22 pm #595742See also Brooke’s Star Post and WebGenii’s Toggle Macro in that same thread; the latter works the same as Word’s Shift-F3.
-
WSasuboonenc
AskWoody LoungerJune 19, 2002 at 6:01 pm #595810Hello Gang,
This little help file is from my friends at a company called Hospitality 1ST. It’s an Excel add-in (which means once you have the appropriate “.xla” file just go to Tools>Add-Ins and search for the corresponding file to load). Here is the direction to the file(s) you can use (two of them).
<<>>
Many may believe, like myself, that MS-Office has all the tools needed for database management – it’s a matter of knowing what’s included and taking the time to use the features. EXCEL is incredibly powerful but lacks a “change case” feature (such as that found with MS-Word) from the format toolbar. We’re providing the help (and files) needed to im- plement the change case feature. “chngca.xla” simply adds the command (to format menu) whenever you run it – it’s not “sticky” i.e. it drops off once you close EXCEL. http://hospitality-1st.com/help/chngca.xla is the file you’ll save to your hard drive, and then “double-click” to install. “chngcase.exe” is a package of three files, one a readme.txt, one the setup file and one the actual macro that does the work so many of us have been looking for. It is “sticky” i.e. stays with EXCEL program without dropping off after each session. Once you run the setup (it takes a few seconds to load) the format menu permanently contains a Change Case selection which is also available from the “right-mouse click” command menu. http://hospitality-1st.com/help/chngcase.exe is the file you’ll download. Be sure to (read) the “readme.txt” file for complete info (it’s a big help). Both files are freeware. If you’re on a network be sure to check with your network admin before downloading and/or using either of these files. We do encourage the use of a virus scan if you decide to pass-a-long the files to co-workers and friends.
<<>> -
WSDoryO
AskWoody LoungerJune 19, 2002 at 8:22 pm #595781Edited by DoryO on 19-Jun-02 16:22.
Sub Proper_Case()
‘ Loop to cycle through each cell in the specified range.
‘ There is not a Proper function in Visual Basic for Applications.
‘ So, you must use the worksheet function in the following form:For Each x In Selection.Cells
x.Formula = Application.Proper(x.Formula)
NextEnd Sub
Viewing 4 reply threads -

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
-
Office gets current release
by
Susan Bradley
8 minutes ago -
FBI: Still Using One of These Old Routers? It’s Vulnerable to Hackers
by
Alex5723
15 hours, 19 minutes ago -
Windows AI Local Only no NPU required!
by
RetiredGeek
3 hours, 19 minutes ago -
Stop the OneDrive defaults
by
CWBillow
16 hours, 8 minutes ago -
Windows 11 Insider Preview build 27868 released to Canary
by
joep517
1 day, 2 hours ago -
X Suspends Encrypted DMs
by
Alex5723
1 day, 4 hours ago -
WSJ : My Robot and Me AI generated movie
by
Alex5723
1 day, 4 hours ago -
Botnet hacks 9,000+ ASUS routers to add persistent SSH backdoor
by
Alex5723
1 day, 5 hours ago -
OpenAI model sabotages shutdown code
by
Cybertooth
1 day, 5 hours ago -
Backup and access old e-mails after company e-mail address is terminated
by
M W Leijendekker
17 hours, 57 minutes ago -
Enabling Secureboot
by
ITguy
1 day ago -
Windows hosting exposes additional bugs
by
Susan Bradley
1 day, 13 hours ago -
No more rounded corners??
by
CWBillow
1 day, 9 hours ago -
Android 15 and IPV6
by
Win7and10
23 hours, 15 minutes ago -
KB5058405 might fail to install with recovery error 0xc0000098 in ACPI.sys
by
Susan Bradley
2 days, 2 hours ago -
T-Mobile’s T-Life App has a “Screen Recording Tool” Turned on
by
Alex5723
2 days, 4 hours ago -
Windows 11 Insider Preview Build 26100.4202 (24H2) released to Release Preview
by
joep517
1 day, 23 hours ago -
Windows Update orchestration platform to update all software
by
Alex5723
2 days, 12 hours ago -
May preview updates
by
Susan Bradley
1 day, 23 hours ago -
Microsoft releases KB5061977 Windows 11 24H2, Server 2025 emergency out of band
by
Alex5723
1 day, 15 hours ago -
Just got this pop-up page while browsing
by
Alex5723
2 days, 4 hours ago -
KB5058379 / KB 5061768 Failures
by
crown
2 days, 1 hour ago -
Windows 10 23H2 Good to Update to ?
by
jkitc
1 day, 3 hours ago -
At last – installation of 24H2
by
Botswana12
3 days, 3 hours ago -
MS-DEFCON 4: As good as it gets
by
Susan Bradley
1 hour, 19 minutes ago -
RyTuneX optimize Windows 10/11 tool
by
Alex5723
3 days, 15 hours ago -
Can I just update from Win11 22H2 to 23H2?
by
Dave Easley
1 day, 14 hours ago -
Limited account permission error related to Windows Update
by
gtd12345
4 days, 5 hours ago -
Another test post
by
gtd12345
4 days, 5 hours ago -
Connect to someone else computer
by
wadeer
6 hours, 39 minutes ago
Recent blog posts
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-2025 by AskWoody Tech LLC. All Rights Reserved.