#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 460
Default Capitals

I have a column that I want it to always show caps when I type in text. How
can I set the formatting for this?

Thanks
--

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default Capitals

Right click sheet tabview codeinsert thischange column to suit needs.

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column < 1 Then Exit Sub
Application.EnableEvents = file
Target.Value = UCase(Target)
Application.EnableEvents = True
End Sub


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Doug" wrote in message
...
I have a column that I want it to always show caps when I type in text. How
can I set the formatting for this?

Thanks
--


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Capitals

Right click the sheet tabView code and paste the below code which will work
on Col A

Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
If Not Application.Intersect(Target, Range("A:A")) Is Nothing Then
If Target.Count = 1 Then Target = UCase(Target.Text)
End If
Application.EnableEvents = True
End Sub

If this post helps click Yes
---------------
Jacob Skaria


"Doug" wrote:

I have a column that I want it to always show caps when I type in text. How
can I set the formatting for this?

Thanks
--

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,565
Default Capitals

This is one way, using column A as the target column. The code goes into
the Sheet code module. Right click the sheet tab and select view code to
open the code windowl

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count 1 Then Exit Sub
If Not Intersect(Target, Range("A:A")) Is Nothing Then
Target.Value = UCase(Target.Value)
End If

End Sub



"Doug" wrote in message
...
I have a column that I want it to always show caps when I type in text. How
can I set the formatting for this?

Thanks
--



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
Capitals rexmann Excel Discussion (Misc queries) 3 February 29th 08 11:15 AM
Cosmetics Capitals Arlene Excel Worksheet Functions 4 July 13th 07 05:22 PM
All Capitals lostinformulas Excel Worksheet Functions 6 June 14th 06 08:07 PM
Text All Capitals Joey New Users to Excel 3 May 31st 05 11:54 PM
Forced Capitals ianripping[_30_] Excel Programming 3 January 21st 04 09:36 AM


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