R
Rick Rothstein \(MVP - VB\)
You are talking about that statement as part of this block of code, right?
I would think the 'If Len(Application.Trim(cc)) > 0 Then' statement should
already be doing what you ask. Have you modified this block of code in any
way? If yes, you need to show us what you did.
Rick
Hi, Thanks.
How can I make the statement below to only do the Borders to cells
that are not empty, cells that have no values should not have borders.
cc.Borders.LineStyle = xlContinuous
Thanks.
For Each cc In Range(Cells(c.Row, 1), Cells(c.Row, lc))
If Len(Application.Trim(cc)) > 0 Then
cc.Borders.LineStyle = xlContinuous
cc.Borders.Weight = xlMedium
End If
Next cc
I would think the 'If Len(Application.Trim(cc)) > 0 Then' statement should
already be doing what you ask. Have you modified this block of code in any
way? If yes, you need to show us what you did.
Rick
Hi, Thanks.
How can I make the statement below to only do the Borders to cells
that are not empty, cells that have no values should not have borders.
cc.Borders.LineStyle = xlContinuous
Thanks.