Marcel2586
Registered User.
- Local time
- Today, 06:29
- Joined
- Mar 1, 2012
- Messages
- 41
Hi,
I need help with this one.
I use some code that looks at cells, when not empty draw borders around it.
My dato runs to column G and i need also a border around H as well.
Column H will be a remark box.
This is the code i use.
'border all cells
With Cells.SpecialCells(xlCellTypeConstants, 23)
.BorderAround xlContinuous, xlThin, xlColorIndexAutomatic
On Error Resume Next 'used in case there are no inside borders
With .Borders(xlInsideHorizontal)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
With .Borders(xlInsideVertical)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
End With
I need help with this one.
I use some code that looks at cells, when not empty draw borders around it.
My dato runs to column G and i need also a border around H as well.
Column H will be a remark box.
This is the code i use.
'border all cells
With Cells.SpecialCells(xlCellTypeConstants, 23)
.BorderAround xlContinuous, xlThin, xlColorIndexAutomatic
On Error Resume Next 'used in case there are no inside borders
With .Borders(xlInsideHorizontal)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
With .Borders(xlInsideVertical)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
End With