![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Posts: 34
|
This is probably a simple question, but I have searched the archives and cannot find the answer... How can I make the first letter of every work a capital letter?
Thanks for any help! |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Helena, MT
Posts: 13,690
|
I believe you want to use the PROPER function.
If A1 contains "This is a test" then PROPER(A1) will return "This Is A Test" |
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
In addition, you could use ASAP-utilities, a free download from:
http://asap-utilities.com [ This Message was edited by: Aladin Akyurek on 2002-05-20 13:03 ] |
|
|
|
|
|
#4 |
|
New Member
Join Date: May 2002
Posts: 34
|
Thanks!
|
|
|
|
|
|
#5 |
|
New Member
Join Date: May 2002
Posts: 34
|
Can I apply proper to an entire worksheet? Or do I have to put it in each cell?
|
|
|
|
|
|
#6 | |
|
New Member
Join Date: Apr 2002
Posts: 8
|
Quote:
Private Sub Worksheet_Change(ByVal Target As Range) Dim cell As Range For Each cell In Target If cell.HasFormula = False Then cell.Value = StrConv(cell.Value, vbProperCase) End If Next cell End Sub [ This Message was edited by: ldry on 2002-05-20 17:21 ] |
|
|
|
|
|
|
#7 | |
|
New Member
Join Date: Mar 2008
Posts: 15
|
Quote:
Have been using your answer and works great but when there is an apostrophe involved it capatalise's the result, example - that's the way i'm going but can't go - That'S The Way I'M Going But Can'T Go... How do you fix that... Jay |
|
|
|
|
|
|
#8 |
|
Board Regular
Join Date: Jan 2003
Location: Richmond, Va
Posts: 1,852
|
Try something like this:
=SUBSTITUTE(PROPER(SUBSTITUTE(A1,"'","Q")),"q","'")
__________________
“The early bird gets the worm, but the second mouse gets the cheese.” Put Yourself on the Excel Map: http://www.mapservices.org/myguestmap/map/MrExcel Instructions for Map: http://www.mrexcel.com/map.html |
|
|
|
|
|
#9 |
|
New Member
Join Date: Mar 2008
Posts: 15
|
|
|
|
|
|
|
#10 |
|
New Member
Join Date: Jun 2011
Location: Dublin, Ireland
Posts: 6
|
Hello,
First time poster here. I am looking to also get a capital for the first word and need to know a command. I get XLS data and the words are in all capital. I use the =lower(**) command to get them all in lowercase. but what I want is to also have the first letter in the word to be in capital. What else do i need to achieve this. Thanks in advance. Andrew |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|