Hello there,
I am trying to do a handful of things and keep running into problems. Any help would be appreciated.
Goals:
1. Auto Cap all letters in the following cells: L8,L19,L30,L41,L52,L63,L74,L85,L96,L107,L118,L129,L140,L151,L162,L173,L184,L195,L206,L217,L228,L239,R8,R19,R30,R41,R52,R63,R74,R85,R96,R107,R118,R129,R140,R151,R162,R173,R184,R195,R206,R217,R228,R239,T10,T21,T32,T43,T54,T65,T76,T87,T98,T109,T120,T131,T142,T153,T164,T175,T186,T197,T208,T219,T230,T241,U10,U21,U32,U43,U54,U65,U76,U87,U98,U109,U120,U131,U142,U153,U164,U175,U186,U197,U208,U219,U230,U241
2. Auto Cap only the first letter of each work in the following cells: X9,X10,X11,X12,X20,X21,X22,X23,X31,X32,X33,X34,X42,X43,X44,X45,X53,X54,X55,X56,X64,X65,X66,X67,X75,X76,X77,X78,X86,X87,X88,X89,X97,X98,X99,X100,X108,X109,X110,X111,X119,X120,X121,X122,X130,X131,X132,X133,X141,X142,X143,X144,X152,X153,X154,X155,X163,X164,X165,X166,X174,X175,X176,X177,X185,X186,X187,X188,X196,X197,X198,X199,X207,X208,X209,X210,X218,X219,X220,X221,X229,X230,X231,X232,X240,X241,X242,X243
This is what I was working with:
I was watching youTube videos for help and I could only figure out how to auto cap everything OR auto cap only the first letter. And it seems like if I put too many cell references, then nothing works.
I am trying to do a handful of things and keep running into problems. Any help would be appreciated.
Goals:
1. Auto Cap all letters in the following cells: L8,L19,L30,L41,L52,L63,L74,L85,L96,L107,L118,L129,L140,L151,L162,L173,L184,L195,L206,L217,L228,L239,R8,R19,R30,R41,R52,R63,R74,R85,R96,R107,R118,R129,R140,R151,R162,R173,R184,R195,R206,R217,R228,R239,T10,T21,T32,T43,T54,T65,T76,T87,T98,T109,T120,T131,T142,T153,T164,T175,T186,T197,T208,T219,T230,T241,U10,U21,U32,U43,U54,U65,U76,U87,U98,U109,U120,U131,U142,U153,U164,U175,U186,U197,U208,U219,U230,U241
2. Auto Cap only the first letter of each work in the following cells: X9,X10,X11,X12,X20,X21,X22,X23,X31,X32,X33,X34,X42,X43,X44,X45,X53,X54,X55,X56,X64,X65,X66,X67,X75,X76,X77,X78,X86,X87,X88,X89,X97,X98,X99,X100,X108,X109,X110,X111,X119,X120,X121,X122,X130,X131,X132,X133,X141,X142,X143,X144,X152,X153,X154,X155,X163,X164,X165,X166,X174,X175,X176,X177,X185,X186,X187,X188,X196,X197,X198,X199,X207,X208,X209,X210,X218,X219,X220,X221,X229,X230,X231,X232,X240,X241,X242,X243
This is what I was working with:
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim Z As Long
Dim xVal As String
On Error Resume Next
If Intersect(Target, Range("")) Is Nothing Then Exit Sub
Application.EnableEvents = False
For Z = 1 To Target.Count
If Target(Z).Value > 0 Then
Target(Z).Value = UCase(Target(Z).Value)
End If
Next
Application.EnableEvents = True
End Sub
I was watching youTube videos for help and I could only figure out how to auto cap everything OR auto cap only the first letter. And it seems like if I put too many cell references, then nothing works.
Last edited by a moderator: