I have included the following code. When I run the following code it flickers the selected cells for about 5 seconds and complete the job. I want to know why do the cells flicker for about 5 seconds? The code does what it is suppose to do, just don't like the flickering. What if anything can I do to stop the flickering?
Sub Contents()
'This selects the cells to color Green
Range("C8").Select
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.Color = 52377
.TintAndShade = 0
.PatternTintAndShade = 0
End With
' This selects the cells to turn Gray
Range("C9:C15,B11:B13").Select
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorDark1
.TintAndShade = -0.249977111117893
.PatternTintAndShade = 0
End With
' This selects the cells to clear formulas in
Worksheets("Scrap Calculator").Range("B9,B10,B14,B15").ClearContents
End Sub
Thanks so much
Bookmarks