Trevor3007
Well-known Member
- Joined
- Jan 26, 2017
- Messages
- 675
- Office Version
- 365
- Platform
- Windows
good morning ,
The code above works, but it runs like a 3 legged dog! Is there a way to speed up?
MTIA & hope you have a good day.
Code:
Private Sub Worksheet_Change(ByVal Target As Range) If Not Intersect(Target, Range("A:A")) Is Nothing Then
If Target.Count > 1000 Then Exit Sub
For Each c In Target
If LCase(c.Offset(0, 1).Value) = LCase("Matched Assets") Then
Range("A" & c.Row & ":k" & c.Row).Interior.ColorIndex = 24
Else
Range("A" & c.Row & ":k" & c.Row).Interior.ColorIndex = xlNone
End If
Next
End If
If Target.Cells.Count > 1 Or Target.HasFormula Then Exit Sub
On Error Resume Next
If Not Intersect(Target, Range("l3:l8000")) Is Nothing Then
Application.EnableEvents = False
Target = UCase(Target)
Application.EnableEvents = True
End If
On Error GoTo 0
If Target.Cells.Count > 1 Or Target.HasFormula Then Exit Sub
On Error Resume Next
If Not Intersect(Target, Range("A3:h8000")) Is Nothing Then
Application.EnableEvents = False
Target = UCase(Target)
Application.EnableEvents = True
End If
On Error GoTo 0
If Target.Cells.Count > 1 Or Target.HasFormula Then Exit Sub
On Error Resume Next
If Not Intersect(Target, Range("13:i8000")) Is Nothing Then
Application.EnableEvents = False
Target = StrConv(Target, vbProperCase)
Application.EnableEvents = True
Range("A3:L8000").Select
With Selection.Font
.Name = "Calibri"
.Size = 20
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ThemeColor = xlThemeColorLight1
.TintAndShade = 0
.ThemeFont = xlThemeFontMinor
End With
End If
End Sub
The code above works, but it runs like a 3 legged dog! Is there a way to speed up?
MTIA & hope you have a good day.