Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 343
Default Force CAPITAL LETTERS

Is there any way to all text on a worksheet to be capitalized?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 367
Default Force CAPITAL LETTERS

You could add a onchange event on your worksheet.
as soon as something is changed, capitalize it:

Private Sub Worksheet_Change(ByVal Target As Range)
Target.Value = UCase(Target.Value)
End Sub

hth
Carlo

On Jan 18, 4:10*pm, "Patrick C. Simonds"
wrote:
Is there any way to all text on a worksheet to be capitalized?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Force CAPITAL LETTERS

Be carful with this because you can't enter formulas anymore in the worksheet when you use this.
It will make it a value after you press enter after you enter or edit the formula.

Try this

Private Sub Worksheet_Change(ByVal Target As Range)
If Not Target.HasFormula Then Target.Value = UCase(Target.Value)
End Sub



--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"carlo" wrote in message ...
You could add a onchange event on your worksheet.
as soon as something is changed, capitalize it:

Private Sub Worksheet_Change(ByVal Target As Range)
Target.Value = UCase(Target.Value)
End Sub

hth
Carlo

On Jan 18, 4:10 pm, "Patrick C. Simonds"
wrote:
Is there any way to all text on a worksheet to be capitalized?


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 225
Default Force CAPITAL LETTERS

Also you need to handle multiple selections error values:

Private Sub Worksheet_Change(ByVal Target As Range)
Dim c As Range
For Each c In Target
If Not c.HasFormula And Not IsError(c.Value) Then c.Value =
UCase(c.Value)
Next
End Sub



On 18 Jan, 08:07, "Ron de Bruin" wrote:
Be carful with this because you can't enter formulas anymore in the worksheet when you use this.
It will make it a value after you press enter after you enter or edit the formula.

Try this

Private Sub Worksheet_Change(ByVal Target As Range)
If Not Target.HasFormula Then Target.Value = UCase(Target.Value)
End Sub

--

Regards Ron de Bruinhttp://www.rondebruin.nl/tips.htm

"carlo" wrote in ...

You could add a onchange event on your worksheet.
as soon as something is changed, capitalize it:

Private Sub Worksheet_Change(ByVal Target As Range)
Target.Value = UCase(Target.Value)
End Sub

hth
Carlo

On Jan 18, 4:10 pm, "Patrick C. Simonds"
wrote:

Is there any way to all text on a worksheet to be capitalized?


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Force CAPITAL LETTERS

Correct

See this two pages also for the whole story

http://www.mvps.org/dmcritchie/excel/proper.htm
Or
http://www.cpearson.com/excel/case.htm


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Andrew Taylor" wrote in message
...
Also you need to handle multiple selections error values:

Private Sub Worksheet_Change(ByVal Target As Range)
Dim c As Range
For Each c In Target
If Not c.HasFormula And Not IsError(c.Value) Then c.Value =
UCase(c.Value)
Next
End Sub



On 18 Jan, 08:07, "Ron de Bruin" wrote:
Be carful with this because you can't enter formulas anymore in the worksheet when you use this.
It will make it a value after you press enter after you enter or edit the formula.

Try this

Private Sub Worksheet_Change(ByVal Target As Range)
If Not Target.HasFormula Then Target.Value = UCase(Target.Value)
End Sub

--

Regards Ron de Bruinhttp://www.rondebruin.nl/tips.htm

"carlo" wrote in ...

You could add a onchange event on your worksheet.
as soon as something is changed, capitalize it:

Private Sub Worksheet_Change(ByVal Target As Range)
Target.Value = UCase(Target.Value)
End Sub

hth
Carlo

On Jan 18, 4:10 pm, "Patrick C. Simonds"
wrote:

Is there any way to all text on a worksheet to be capitalized?





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 367
Default Force CAPITAL LETTERS

You're absolutely right.
Sorry, didn't consider that, thanks for telling me.

Carlo

On Jan 18, 9:41*pm, "Ron de Bruin" wrote:
Correct

See this two pages also for the whole story

http://www.mvps.org/dmcritchie/excel/proper.htm
Orhttp://www.cpearson.com/excel/case.htm

--

Regards Ron de Bruinhttp://www.rondebruin.nl/tips.htm

"Andrew Taylor" wrote in message

...



Also you need to handle multiple selections error values:


Private Sub Worksheet_Change(ByVal Target As Range)
Dim c *As Range
For Each c In Target
*If Not c.HasFormula And Not IsError(c.Value) Then c.Value =
UCase(c.Value)
Next
End Sub


On 18 Jan, 08:07, "Ron de Bruin" wrote:
Be carful with this because you can't enter formulas anymore in the worksheet when you use this.
It will make it a value after you press enter after you enter or edit the formula.


Try this


Private Sub Worksheet_Change(ByVal Target As Range)
If Not Target.HasFormula Then Target.Value = UCase(Target.Value)
End Sub


--


Regards Ron de Bruinhttp://www.rondebruin.nl/tips.htm


"carlo" wrote in ...


You could add a onchange event on your worksheet.
as soon as something is changed, capitalize it:


Private Sub Worksheet_Change(ByVal Target As Range)
* Target.Value = UCase(Target.Value)
End Sub


hth
Carlo


On Jan 18, 4:10 pm, "Patrick C. Simonds"
wrote:


Is there any way to all text on a worksheet to be capitalized?- Hide quoted text -


- Show quoted text -


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
how to change small letters to capital letters HOW TO CHANGE Excel Discussion (Misc queries) 4 May 30th 07 01:12 AM
how do i turn all letters into capital letters? KeithT Excel Discussion (Misc queries) 3 May 11th 07 02:13 PM
How do I force all capital in a column of lower case names? Dean-Xceldata New Users to Excel 7 February 15th 07 02:42 PM
Capital Letters Only Simon Jefford Excel Discussion (Misc queries) 2 February 2nd 06 06:04 PM
Capital Letters Gaute Excel Worksheet Functions 4 March 9th 05 09:55 AM


All times are GMT +1. The time now is 09:53 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"