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.
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
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
-
Difface : Reconstruction of 3D Human Facial Images from DNA Sequence
by
Alex5723
1 hour, 2 minutes ago -
Seven things we learned from WhatsApp vs. NSO Group spyware lawsuit
by
Alex5723
1 hour, 24 minutes ago -
Outdated Laptop
by
jdamkeene
6 hours, 28 minutes ago -
Updating Keepass2Android
by
CBFPD-Chief115
11 hours, 53 minutes ago -
Another big Microsoft layoff
by
Charlie
11 hours, 33 minutes ago -
PowerShell to detect NPU – Testers Needed
by
RetiredGeek
2 hours, 30 minutes ago -
May 2025 updates are out
by
Susan Bradley
11 hours, 57 minutes ago -
Windows 11 Insider Preview build 26200.5600 released to DEV
by
joep517
17 hours, 36 minutes ago -
Windows 11 Insider Preview build 26120.3964 (24H2) released to BETA
by
joep517
17 hours, 38 minutes ago -
Drivers suggested via Windows Update
by
Tex265
17 hours, 29 minutes ago -
Thunderbird release notes for 128 esr have disappeared
by
EricB
15 hours, 13 minutes ago -
CISA mutes own website, shifts routine cyber alerts to X, RSS, email
by
Nibbled To Death By Ducks
1 day ago -
Apple releases 18.5
by
Susan Bradley
18 hours, 54 minutes ago -
Fedora Linux 40 will go end of life for updates and support on 2025-05-13.
by
Alex5723
1 day, 1 hour ago -
How a new type of AI is helping police skirt facial recognition bans
by
Alex5723
1 day, 2 hours ago -
Windows 7 ISO /Windows 10 ISO
by
ECWS
9 hours, 48 minutes ago -
No HP software folders
by
fpefpe
1 day, 10 hours ago -
Which antivirus apps and VPNs are the most secure in 2025?
by
B. Livingston
7 hours, 33 minutes ago -
Stay connected anywhere
by
Peter Deegan
1 day, 15 hours ago -
Copilot, under the table
by
Will Fastie
1 day, 6 hours ago -
The Windows experience
by
Will Fastie
1 day, 21 hours ago -
A tale of two operating systems
by
Susan Bradley
2 hours, 4 minutes ago -
Microsoft : Resolving Blue Screen errors in Windows
by
Alex5723
2 days, 3 hours ago -
Where’s the cache today?
by
Up2you2
2 days, 18 hours ago -
Ascension says recent data breach affects over 430,000 patients
by
Nibbled To Death By Ducks
2 days, 11 hours ago -
Nintendo Switch 2 has a remote killing switch
by
Alex5723
1 day, 11 hours ago -
Blocking Search (on task bar) from going to web
by
HenryW
13 hours, 50 minutes ago -
Windows 10: Microsoft 365 Apps will be supported up to Oct. 10 2028
by
Alex5723
3 days, 11 hours ago -
Add or Remove “Ask Copilot” Context Menu in Windows 11 and 10
by
Alex5723
3 days, 11 hours ago -
regarding april update and may update
by
heybengbeng
3 days, 13 hours 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.