hendrikbez
Board Regular
- Joined
- Dec 13, 2013
- Messages
- 95
- Office Version
- 2021
- Platform
- Windows
I have this code, but it does not doing what I need. did search with Google, but cannot find any info
is the following possible, if so how.
I want to highlight say 2 rows, then it must place a border on top and bottom of the rows.
The nesx one can be 4 rows and so on.
the rows will always be different sizes.
is the following possible, if so how.
I want to highlight say 2 rows, then it must place a border on top and bottom of the rows.
The nesx one can be 4 rows and so on.
the rows will always be different sizes.
Code:
<code>Sub RedOutlineCells()
Dim rng As Range
Set rng = Range("A1:k4")
With rng.Borders
.LineStyle = xlContinuous
.Color = vbRed
.Weight = xlThin
End With
End Sub</code>