Created
December 1, 2022 16:00
-
-
Save faeem81/8b21e725b22d9cc340f4f6d30582f100 to your computer and use it in GitHub Desktop.
How to Use VBA UCase Function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Private Sub Worksheet_Change(ByVal Target As Range) | |
Dim Z As Long | |
Dim xVal As String | |
On Error Resume Next | |
If Intersect(Target, Range("C8:C100")) 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment