![]() |
![]() |
|
|||||||
| 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: Mar 2002
Posts: 19
|
hi, is there any way to get a column to automatically put a capital letter on the start of each word of the text thats been pasted in
BoB |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Apr 2002
Location: Surrey, United Kingdom
Posts: 75
|
Hi,
Unless you want some VBA I can't think of a way to do it automatically (someone may be able to correct me on this however). If you're column starts in A1, you could always put this formula in B1 and drag it down: =UPPER(LEFT(A1,1))&MID(A1,2,999) Hope this helps, Nibbs |
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
|
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Apr 2002
Location: Surrey, United Kingdom
Posts: 75
|
Argh! I'm being silly. If you only have one word in each cell you can just use:
=PROPER(A1) Nibbs |
|
|
|
|
|
#5 |
|
New Member
Join Date: Mar 2002
Posts: 5
|
Select your cell(s) and run this macro :-
Sub TextProperCase() Dim rng As Range, cell As Range Set rng = Intersect(ActiveSheet.UsedRange, Selection) For Each cell In rng If cell.HasFormula = False Then cell.Value = StrConv(cell.Value, vbProperCase) End If Next cell End Sub |
|
|
|
|
|
#6 |
|
Board Regular
Join Date: Apr 2002
Location: Cape Town,South Africa
Posts: 234
|
Hello Friend
There are lots and lots of ways to do it,but the most convenient is :- =UPPER(LEFT(A1,1))&MID(A1,2,999) |
|
|
|
|
|
#7 | |
|
Join Date: Apr 2002
Posts: 12
|
Quote:
This capitalises the first letter of only the first word in the cell. =PROPER(A1) capitalises the first letter of all words in the cell. In any event, it seems to me that the "most convenient" way is just to select the required cell(s) and click a button - which is all that is required by the suggestions from Aladin Akyurek and Afcb (both these suggestions convert all words to proper case). It should be noted that Aladin Akyurek's suggestion will convert any cells containing formulas to values only. Afcb's suggestion converts only cells containing constant values. |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|