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
-
To download Win 11 Pro 23H2 ISO. (Awaiting moderation)
by
Eddieloh
1 hour, 29 minutes ago -
Manage your browsing experience with Edge
by
Mary Branscombe
2 hours, 7 minutes ago -
Fewer vulnerabilities, larger updates
by
Susan Bradley
45 minutes ago -
Hobbies — There’s free software for that!
by
Deanna McElveen
2 hours, 9 minutes ago -
Apps included with macOS
by
Will Fastie
2 hours, 10 minutes ago -
Xfinity home internet
by
MrJimPhelps
6 hours, 59 minutes ago -
Convert PowerPoint presentation to Impress
by
RetiredGeek
8 hours, 59 minutes ago -
Debian 12.11 released
by
Alex5723
17 hours, 25 minutes ago -
Microsoft: Troubleshoot problems updating Windows
by
Alex5723
21 hours, 6 minutes ago -
Woman Files for Divorce After ChatGPT “Reads” Husband’s Coffee Cup
by
Alex5723
32 minutes ago -
Moving fwd, Win 11 Pro,, which is best? Lenovo refurb
by
Deo
17 hours, 34 minutes ago -
DBOS Advanced Network Analysis
by
Kathy Stevens
1 day, 14 hours ago -
Microsoft Edge Launching Automatically?
by
healeyinpa
1 day, 4 hours ago -
Google Chrome to block admin-level browser launches for better security
by
Alex5723
1 day, 16 hours ago -
iPhone SE2 Stolen Device Protection
by
Rick Corbett
1 day, 8 hours ago -
Some advice for managing my wireless internet gateway
by
LHiggins
16 hours, 30 minutes ago -
NO POWER IN KEYBOARD OR MOUSE
by
HE48AEEXX77WEN4Edbtm
9 hours, 22 minutes ago -
A CVE-MITRE-CISA-CNA Extravaganza
by
Nibbled To Death By Ducks
2 days, 2 hours ago -
Sometimes I wonder about these bots
by
Susan Bradley
1 day, 22 hours ago -
Does windows update component store “self heal”?
by
Mike Cross
1 day, 12 hours ago -
Windows 11 Insider Preview build 27858 released to Canary
by
joep517
2 days, 16 hours ago -
Pwn2Own Berlin 2025: Day One Results
by
Alex5723
1 day ago -
Windows 10 might repeatedly display the BitLocker recovery screen at startup
by
Susan Bradley
12 hours, 43 minutes ago -
Windows 11 Insider Preview Build 22631.5409 (23H2) released to Release Preview
by
joep517
2 days, 18 hours ago -
Windows 10 Build 19045.5912 (22H2) to Release Preview Channel
by
joep517
2 days, 18 hours ago -
Kevin Beaumont on Microsoft Recall
by
Susan Bradley
2 days, 7 hours ago -
The Surface Laptop Studio 2 is no longer being manufactured
by
Alex5723
3 days, 2 hours ago -
0Patch, where to begin
by
cassel23
2 days, 21 hours ago -
CFPB Quietly Kills Rule to Shield Americans From Data Brokers
by
Alex5723
3 days, 16 hours ago -
89 million Steam account details just got leaked,
by
Alex5723
3 days, 4 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.