daillest319
New Member
- Joined
- Jan 9, 2012
- Messages
- 43
i trying to write a macro to add Yellow background color to all the data starting from row 2 in a specfic worksheet but the rows of data is always different it coulsbe from row 2 to 50 then the next day from row 2 to 100 etc.
i recorded a macro but it not really helping me.
i recorded a macro but it not really helping me.
Code:
Sub Macro2()
Range("A2").Select
Range("A2:O56").Select
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.Color = 65535
.TintAndShade = 0
.PatternTintAndShade = 0
End With
End Sub