Microsoft Office Forums


Reply
Thread Tools Display Modes

Title Capitalization

 
 
John Persico
Guest
Posts: n/a

 
      03-05-2010, 02:15 PM
Is there anyway to for a column to use Title Capitalization?

--


 
Reply With Quote
 
 
 
 
Gord Dibben
Guest
Posts: n/a

 
      03-05-2010, 03:21 PM
Either with a helper column and the PROPER function or VBA event code to
change in-cell when entered.

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Target.Column <> 1 Then Exit Sub 'adjust to suit
On Error GoTo ErrHandler
Application.EnableEvents = False
Target.Formula = Application.Proper(Target.Formula)
ErrHandler:
Application.EnableEvents = True
End Sub


Gord Dibben MS Excel MVP

On Fri, 5 Mar 2010 10:15:25 -0500, "John Persico" <(E-Mail Removed)>
wrote:

>Is there anyway to for a column to use Title Capitalization?


 
Reply With Quote
 
John Persico
Guest
Posts: n/a

 
      03-09-2010, 06:45 PM
The column that needs to be in Title Case is Column B.

Where do I enter the code?
I've never done anything with VBA.
Thanks for any help you can provide.

--


"Gord Dibben" <gorddibbATshawDOTca> wrote in message
news:(E-Mail Removed)...
> Either with a helper column and the PROPER function or VBA event code to
> change in-cell when entered.
>
> Private Sub Worksheet_Change(ByVal Target As Excel.Range)
> If Target.Column <> 1 Then Exit Sub 'adjust to suit
> On Error GoTo ErrHandler
> Application.EnableEvents = False
> Target.Formula = Application.Proper(Target.Formula)
> ErrHandler:
> Application.EnableEvents = True
> End Sub
>
>
> Gord Dibben MS Excel MVP
>
> On Fri, 5 Mar 2010 10:15:25 -0500, "John Persico" <(E-Mail Removed)>
> wrote:
>
>>Is there anyway to for a column to use Title Capitalization?

>


 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a

 
      03-12-2010, 02:14 PM
I've been away.

If you're still waiting.................

Right-click on the sheet tab and "View Code".

Copy/paste the code into that sheet module.

Adjust If Target.Column <> 1 Then Exit Sub to <> 2

Alt + q to return to Excel.


Gord


On Tue, 9 Mar 2010 14:45:49 -0500, "John Persico" <(E-Mail Removed)>
wrote:

>The column that needs to be in Title Case is Column B.
>
>Where do I enter the code?
>I've never done anything with VBA.
>Thanks for any help you can provide.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Message Box Title accesshacker Access Newsgroup 6 03-17-2010 12:16 PM
title bar and menu bar in black Steve Outlook Newsgroup 2 03-04-2010 09:21 PM
Switchboard Title Not Showing Properly Risikio Access Newsgroup 1 02-18-2010 07:01 PM



All times are GMT. The time now is 02:18 PM.