Capitals

D

Doug

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
--
 
D

Don Guillett

Right click sheet tab>view code>insert this>change 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
 
J

Jacob Skaria

Right click the sheet tab>View 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
 
J

JLGWhiz

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top