Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
HowGirl
 
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?
  #2   Report Post  
Nick Hodge
 
Posts: n/a
Default

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
HIS


"HowGirl" wrote in message
...
Is there a way to format cells in Excell to automatically capitalize the
first letter of text in a cell?



  #3   Report Post  
Gord Dibben
 
Posts: n/a
Default

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"
wrote:

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


  #4   Report Post  
HowGirl
 
Posts: n/a
Default

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
HIS


"HowGirl" wrote in message
...
Is there a way to format cells in Excell to automatically capitalize the
first letter of text in a cell?




  #5   Report Post  
BOB
 
Posts: n/a
Default

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
HIS


"HowGirl" wrote in message
...
Is there a way to format cells in Excell to automatically capitalize the
first letter of text in a cell?




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
Can't format cell color/text color in Office Excel 2003 in fil Tony S Excel Discussion (Misc queries) 1 December 21st 07 01:41 PM
Read Text File into Excel Using VBA Willie T Excel Discussion (Misc queries) 13 January 8th 05 12:37 AM
How I do I rotate text in an excel cell? The rotate commands is g. MickG Excel Discussion (Misc queries) 3 December 13th 04 08:14 PM
Format text in Excel kez Setting up and Configuration of Excel 9 December 11th 04 05:49 PM


All times are GMT +1. The time now is 08:01 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"