Boston_Paul
New Member
- Joined
- Sep 3, 2024
- Messages
- 2
- Office Version
- 2019
- Platform
- Windows
In the following "sub", I keep getting an "object Required" error when the "with Range" code begins.
I have read other solutions, but no matter what I do, I get the same error. Any assistance would be appreciated.
I have read other solutions, but no matter what I do, I get the same error. Any assistance would be appreciated.
Rich (BB code):
Sub addmonthtotalrowcolors()
Dim rloop As Long
Windows("email tracking report.xlsm").Activate
Worksheets("RPC Prom Output").Activate
Worksheets("rpc prom output").Select
Last_Row = Cells(Rows.Count, 1).End(xlUp).Row
Range("A2").Select
For rloop = 2 To Last_Row
If Cells(rloop, 2) = "JAN" Then
With Range(Cells(rloop, 1), Cells(rloop, 7)).Select _
.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorDark1
.TintAndShade = -0.14996795556505
.PatternTintAndShade = 0
End With
End If
Next rloop
End Sub