TkdKidSnake
Active Member
- Joined
- Nov 27, 2012
- Messages
- 255
- Office Version
- 365
- Platform
- Windows
Hi all,
I am trying to make a spreadsheet easier to read, the sheet has many lines and varies in length. Column B will always have something in so this can be used to find the end of the data.
I am trying to shade in from B to S then miss T and shade U, the shading needs to start from row 5 however row 5 is essentially left alone and then the first shaded row would be row 6 see below:
Row 5 – no shading
Row 6 – Shaded
Row 7 – no shading
Row 8 – Shaded
Etc, Etc, Etc
I have recorded the following code to give you an idea of what I am trying to achieve.
Any help you can provide would be greatly appreciated
I am trying to make a spreadsheet easier to read, the sheet has many lines and varies in length. Column B will always have something in so this can be used to find the end of the data.
I am trying to shade in from B to S then miss T and shade U, the shading needs to start from row 5 however row 5 is essentially left alone and then the first shaded row would be row 6 see below:
Row 5 – no shading
Row 6 – Shaded
Row 7 – no shading
Row 8 – Shaded
Etc, Etc, Etc
I have recorded the following code to give you an idea of what I am trying to achieve.
Code:
Range("B6:S6,U6").Select
Range("U6").Activate
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorAccent6
.TintAndShade = 0.599993896298105
.PatternTintAndShade = 0
End With
Range("B8:S8,U8").Select
Range("U8").Activate
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorAccent6
.TintAndShade = 0.599993896298105
.PatternTintAndShade = 0
End With
Any help you can provide would be greatly appreciated
Last edited: