This should run much more efficiently. I couldn't test so there could be small errors, but it should be solid overall. Let me know if you need help with any errors you may encounter.
With objXL.ActiveWorkbook.ActiveSheet
For i = intRowPos To intMaxRecordCount + intRowPos
If .Cells(i, "B").Value <> .Cells(i - 1, "B").Value Then
.Range(.Cells(i, "B"), .Cells(i, "H")).Font.FontStyle = "Bold"
.Cells(i, 33).Value = .Cells(i, 4).Value
Else
.Range(.Cells(i, "B"), .Cells(i, "G")).Font.ThemeColor = xlThemeColorDark1
.Range(.Cells(i, "B"), .Cells(i, "G")).TintAndShade = -0.249977111
.Range(.Cells(i, "B"), .Cells(i, "H")).Font.Bold = True
End If
Next i
End With
Bookmarks