Just a quick question I think, I want to set the properties of certain cells in more than 1 range and was wondering if this is possible. To explain better here is a portion of my code
Now I also want to give A29, A40, A51, etc the same properties and was wondering if it were possible to include them in the same with statement, rathing than having to copy and paste the whole thing and just change the cell reference?
Code:
With ws2.Range("A18")
.Value = "Name"
.BorderAround ColorIndex:=0, Weight:=xlThin
.Interior.Color = RGB(204, 192, 218)
.Font.Bold = True
.Locked = False
End With
Now I also want to give A29, A40, A51, etc the same properties and was wondering if it were possible to include them in the same with statement, rathing than having to copy and paste the whole thing and just change the cell reference?