The Animal
Active Member
- Joined
- May 26, 2011
- Messages
- 449
Hi
I have this little fill button to "Fill Colour" columns A20 to D20. If I select cell A20 it then fills all cells A20 to D20. How would it look if I wanted to select any cell in the A column to fill all cells A to D in that row I selected, So say I selected cell A600 and then used the button then all of A600 to D600 fills.
Sub NewNotRecorded()
' NewNotRecorded Macro
Range("A20:D20").Select
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.Color = 49407
.TintAndShade = 0
.PatternTintAndShade = 0
End With
End Sub
Thanks Stephen
I have this little fill button to "Fill Colour" columns A20 to D20. If I select cell A20 it then fills all cells A20 to D20. How would it look if I wanted to select any cell in the A column to fill all cells A to D in that row I selected, So say I selected cell A600 and then used the button then all of A600 to D600 fills.
Sub NewNotRecorded()
' NewNotRecorded Macro
Range("A20:D20").Select
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.Color = 49407
.TintAndShade = 0
.PatternTintAndShade = 0
End With
End Sub
Thanks Stephen