PC Review Forums Newsgroups Microsoft Excel Microsoft Excel Setup format a text cell in Excel

Reply

format a text cell in Excel

 
Thread Tools Rate Thread
Old 03-01-2005, 12:15 AM   #1
=?Utf-8?B?SG93R2lybA==?=
Guest
 
Posts: n/a
Default format a text cell in Excel


Is there a way to format cells in Excell to automatically capitalize the
first letter of text in a cell?
  Reply With Quote
Old 03-01-2005, 09:21 AM   #2
Nick Hodge
Guest
 
Posts: n/a
Default Re: format a text cell in Excel

For data in A1, enter this in B1 and then copy and paste special the data
back to column A to replace it

=PROPER(A1)

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
nick_hodgeTAKETHISOUT@zen.co.uk.ANDTHIS


"HowGirl" <HowGirl@discussions.microsoft.com> wrote in message
news:B3D7386C-EF4C-4690-A526-15F689FBFC7D@microsoft.com...
> Is there a way to format cells in Excell to automatically capitalize the
> first letter of text in a cell?



  Reply With Quote
Old 03-01-2005, 05:54 PM   #3
Gord Dibben
Guest
 
Posts: n/a
Default Re: format a text cell in Excel

HowGirl

No way to format as such.

Would need event code behind the worksheet. The code below operates on cells
in columns A through H. Note the "8" which is column H. Adjust to suit.

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

Right-click on the sheet tab and "View Code". Copy/paste the code in that
sheet module.


Gord Dibben Excel MVP

On Sun, 2 Jan 2005 16:15:02 -0800, "HowGirl"
<HowGirl@discussions.microsoft.com> wrote:

>Is there a way to format cells in Excell to automatically capitalize the
>first letter of text in a cell?


  Reply With Quote
Old 03-01-2005, 07:13 PM   #4
=?Utf-8?B?SG93R2lybA==?=
Guest
 
Posts: n/a
Default Re: format a text cell in Excel

Thanks so much - this will work for me.

"Nick Hodge" wrote:

> For data in A1, enter this in B1 and then copy and paste special the data
> back to column A to replace it
>
> =PROPER(A1)
>
> --
> HTH
> Nick Hodge
> Microsoft MVP - Excel
> Southampton, England
> nick_hodgeTAKETHISOUT@zen.co.uk.ANDTHIS
>
>
> "HowGirl" <HowGirl@discussions.microsoft.com> wrote in message
> news:B3D7386C-EF4C-4690-A526-15F689FBFC7D@microsoft.com...
> > Is there a way to format cells in Excell to automatically capitalize the
> > first letter of text in a cell?

>
>
>

  Reply With Quote
Old 16-06-2005, 10:54 PM   #5
=?Utf-8?B?Qk9C?=
Guest
 
Posts: n/a
Default Re: format a text cell in Excel

Thank you so very much! Couldn't figure out how to use this function with
the Microsoft help (kept getting circular reference) your response indicated
how to prevent that!

"Nick Hodge" wrote:

> For data in A1, enter this in B1 and then copy and paste special the data
> back to column A to replace it
>
> =PROPER(A1)
>
> --
> HTH
> Nick Hodge
> Microsoft MVP - Excel
> Southampton, England
> nick_hodgeTAKETHISOUT@zen.co.uk.ANDTHIS
>
>
> "HowGirl" <HowGirl@discussions.microsoft.com> wrote in message
> news:B3D7386C-EF4C-4690-A526-15F689FBFC7D@microsoft.com...
> > Is there a way to format cells in Excell to automatically capitalize the
> > first letter of text in a cell?

>
>
>

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

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

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