Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
count cells with diagonal borders
i wish to count cells in a range that have diagonal cell borders or
the cell is X'd out, is it possible, thanks for any help |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
count cells with diagonal borders
On Sep 11, 4:00*am, jt wrote:
i wish to count cells in a range that have diagonal cell borders or the cell is X'd out, is it possible, thanks for any help Try the following UDF: Function CountDiagonal(rng As Range) Dim i As Integer Dim cell As Range i = 0 For Each cell In rng If cell.Borders(xlDiagonalDown).LineStyle < xlLineStyleNone _ Or cell.Borders(xlDiagonalUp).LineStyle < xlLineStyleNone Then i = i + 1 End If Next CountDiagonal = i End Function |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
count cells with diagonal borders
What do you mean by "X'd out"?
Post an example. Gord Dibben Microsoft Excel MVP On Sat, 10 Sep 2011 20:00:47 -0700 (PDT), jt wrote: i wish to count cells in a range that have diagonal cell borders or the cell is X'd out, is it possible, thanks for any help |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
count cells with diagonal borders
On Sep 11, 11:00*am, Gord wrote:
What do you mean by *"X'd out"? Post an example. Gord Dibben * *MicrosoftExcelMVP On Sat, 10 Sep 2011 20:00:47 -0700 (PDT), jt wrote: i wish to count cells in a range that havediagonalcellbordersor the cell is X'd out, is it possible, thanks for any help- Hide quoted text - - Show quoted text - excellent, this works, thankyou |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
count cells with diagonal cell borders | Excel Programming | |||
Diagonal Borders | Excel Discussion (Misc queries) | |||
Creating cells with Diagonal borders | Excel Discussion (Misc queries) | |||
Test if cell has diagonal borders | Excel Programming | |||
Can't print diagonal borders although they show on print preview | Excel Discussion (Misc queries) |