VBA code for outline border
Cool!
Thanks Chip.....never new the BorderAround existed. Found it in help under the
Range Object section.
Do you think I should read the Help section more often? <g
Gord
On Sat, 23 Dec 2006 13:18:12 -0600, "Chip Pearson" wrote:
Otto,
I'm assuming you want to create a single border around a range of cells, not
setting the borders for each individual cell in the range. Try
Range("C3:D20").BorderAround Weight:=xlMedium
You could modify this to
Selection.BorderAround Weight:=xlMedium
' or
ActiveCell.BorderAround Weight:=xlMedium
|