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
-
KB5058379 / KB 5061768 Failures
by
crown
2 hours, 59 minutes ago -
Windows 10 23H2 Good to Update to ?
by
jkitc
5 hours, 39 minutes ago -
At last – installation of 24H2
by
Botswana12
6 hours, 23 minutes ago -
MS-DEFCON 4: As good as it gets
by
Susan Bradley
1 hour, 38 minutes ago -
RyTuneX optimize Windows 10/11 tool
by
Alex5723
18 hours, 35 minutes ago -
Can I just update from Win11 22H2 to 23H2?
by
Dave Easley
11 hours, 54 minutes ago -
Limited account permission error related to Windows Update
by
gtd12345
1 day, 7 hours ago -
Another test post
by
gtd12345
1 day, 8 hours ago -
Connect to someone else computer
by
wadeer
1 day, 2 hours ago -
Limit on User names?
by
CWBillow
1 day, 5 hours ago -
Choose the right apps for traveling
by
Peter Deegan
19 hours, 35 minutes ago -
BitLocker rears its head
by
Susan Bradley
3 hours, 36 minutes ago -
Who are you? (2025 edition)
by
Will Fastie
2 hours, 32 minutes ago -
AskWoody at the computer museum, round two
by
Will Fastie
21 hours, 57 minutes ago -
A smarter, simpler Firefox address bar
by
Alex5723
1 day, 18 hours ago -
Woody
by
Scott
2 days, 3 hours ago -
24H2 has suppressed my favoured spider
by
Davidhs
3 hours, 12 minutes ago -
GeForce RTX 5060 in certain motherboards could experience blank screens
by
Alex5723
2 days, 18 hours ago -
MS Office 365 Home on MAC
by
MickIver
2 days, 11 hours ago -
Google’s Veo3 video generator. Before you ask: yes, everything is AI here
by
Alex5723
3 days, 8 hours ago -
Flash Drive Eject Error for Still In Use
by
J9438
2 hours, 57 minutes ago -
Windows 11 Insider Preview build 27863 released to Canary
by
joep517
4 days, 3 hours ago -
Windows 11 Insider Preview build 26120.4161 (24H2) released to BETA
by
joep517
4 days, 3 hours ago -
AI model turns to blackmail when engineers try to take it offline
by
Cybertooth
3 days, 6 hours ago -
Migrate off MS365 to Apple Products
by
dmt_3904
3 days, 7 hours ago -
Login screen icon
by
CWBillow
2 days, 21 hours ago -
AI coming to everything
by
Susan Bradley
12 hours, 25 minutes ago -
Mozilla : Pocket shuts down July 8, 2025, Fakespot shuts down on July 1, 2025
by
Alex5723
4 days, 18 hours ago -
No Screen TurnOff???
by
CWBillow
4 days, 19 hours ago -
Identify a dynamic range to then be used in another formula
by
BigDaddy07
4 days, 19 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.