Microsoft® Excel® based database addin

 

+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    John Persico Guest

    Default Title Capitalization

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

    --



  2. #2
    Gord Dibben Guest

    Default Re: Title Capitalization

    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" <reply@newsgroup.com>
    wrote:

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



  3. #3
    John Persico Guest

    Default Re: Title Capitalization

    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:jhb2p5pv5vu0q1tbhhmj50g6rs0l6fjvq5@4ax.com...
    > 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" <reply@newsgroup.com>
    > wrote:
    >
    >>Is there anyway to for a column to use Title Capitalization?

    >



  4. #4
    Gord Dibben Guest

    Default Re: Title Capitalization

    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" <reply@newsgroup.com>
    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.



Similar Threads

  1. Access Chart Title and Axis title and Legend
    By iccsi in forum Access Reports
    Replies: 1
    Last Post: 03-29-2009, 06:25 PM
  2. Show full path title in title bar?
    By Nor in forum New Excel Users Forum
    Replies: 4
    Last Post: 01-25-2009, 04:01 PM
  3. Replies: 1
    Last Post: 01-16-2009, 01:18 AM
  4. Replies: 1
    Last Post: 01-16-2009, 01:17 AM
  5. Aligning title, legend, x axis title on chart
    By Ann Scharpf in forum Charting
    Replies: 1
    Last Post: 01-14-2009, 02:30 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts