Mornin all.
I have a code that selects certain cells based on the user's input and highlights them yellow or gray. If possible I'd like to be able to set the cells I want highlighted equal to a range of some sort then highlight the range so the sheet isn't jumping everywhere (by selecting them) when it highlights the cells. See below for example:
sh2.Rang("B13:31").Select
With Selection.Interior
.Pattern = xlSolid
.PatternColoIndex = xlAutomatic
.ThemeColor = xlThemeColorDarkl
.TintAndShade = -0.149998474074526
.PatternTintAndShade = 0
End With
Thanks in advance!
I have a code that selects certain cells based on the user's input and highlights them yellow or gray. If possible I'd like to be able to set the cells I want highlighted equal to a range of some sort then highlight the range so the sheet isn't jumping everywhere (by selecting them) when it highlights the cells. See below for example:
sh2.Rang("B13:31").Select
With Selection.Interior
.Pattern = xlSolid
.PatternColoIndex = xlAutomatic
.ThemeColor = xlThemeColorDarkl
.TintAndShade = -0.149998474074526
.PatternTintAndShade = 0
End With
Thanks in advance!