Auto Capitalization of movie names.

DaveBen

New Member
Joined
Oct 22, 2010
Messages
23
Office Version
  1. 2010
Platform
  1. Windows
  2. Mobile
Hi, I am wondering how I can get excel to automatically capitalize words in a cell that I input. I would like to enter the title of DVD/Blu-rays that I have and get it to be proper after I go to the next cell. For instance I would like to enter: it's a wonderful life and get It's a Wonderful Life. The way I have it now it will go "It'S A Wonderful Life". Also I would another colum of cells to also auto capitalize words I type in like: "sci-fi to Sci-Fi, comedy to Comedy etc". Any help would be greatly appreciated. Thanks in advance.

Dave
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Welcome to the Board!!

Might not be the best solution but for now this will help

=PROPER(A1)
 
Upvote 0
Will that work for a whole column or just one cell?
 
Upvote 0
I tried that and all I got was "0's" down the whole column. I than saved the file as a template, started a new worksheet from the template and it didn't work. The title I typed in stayed in lower case. The cell's I want this to work for are C2 to C63 and F2 to F63. Do I need to insert a new column for the formula to work? Any help would be greatly appreciated. Thanks in advance.

Dave.
 
Upvote 0
You would have to insert a new column. Note this will only capitalize the first letter of every word.

=PROPER(C2)
=PROPER(C3)
=PROPER(C4)
etc...


Excel 2010
AB
1a new hopeA New Hope
2empire strikes backEmpire Strikes Back
3return of the jediReturn Of The Jedi
Sheet11
Cell Formulas
RangeFormula
B1=PROPER(A1)
B2=PROPER(A2)
B3=PROPER(A3)
 
Upvote 0
Is there another way to do it without inserting another column(s)? I would like it so that the cell I enter the data in automatically does the proper case without having to add another column after it??
 
Upvote 0
How would I make a VBA solution? Any help would be greatly appreciated. Thanks in advance.

Dave
 
Upvote 0
With this code, anytime you enter anything in A1:A11, the value you entered will be made into proper case just like using the formula shyy provided.

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    Dim Rng As Range
    Set Rng = Target.Parent.Range("A1:A11")
    If Target.Count > 1 Then Exit Sub
    If Intersect(Target, Rng) Is Nothing Then Exit Sub
    Application.EnableEvents = False
    Target = Application.WorksheetFunction.Proper(Target)
    Application.EnableEvents = False
End Sub

This code is placed in the VBE under the sheet code...

Where do I paste the code that I find on the internet
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,611
Messages
6,120,513
Members
448,967
Latest member
screechyboy79

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top