I want to ask the user to select a range and color this range in all sheets in the workbook.
I already have the following code...
It asks the user to select a range and colors the cells in the active sheet.
How do I color the cells in the other sheets ?
Can I copy the range from one worksheet to anaother worksheet ?
Code:
Set tspan = Application.InputBox("Select the first timespan in the upper device", "Time span", Type:=8)
tspan.Select
For Each Cell In Selection
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.Color = 10211288
.TintAndShade = 0
.PatternTintAndShade = 0
End With
Next
tspan.Copy