Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
jt jt is offline
external usenet poster
 
Posts: 18
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 86
Default 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   Report Post  
Posted to microsoft.public.excel.programming
jt jt is offline
external usenet poster
 
Posts: 18
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
count cells with diagonal cell borders jt Excel Programming 0 May 3rd 11 03:02 PM
Diagonal Borders Rosi Excel Discussion (Misc queries) 3 October 28th 08 07:13 PM
Creating cells with Diagonal borders Graham Tritton Excel Discussion (Misc queries) 1 January 24th 06 06:09 AM
Test if cell has diagonal borders Brad Excel Programming 4 September 30th 05 01:36 PM
Can't print diagonal borders although they show on print preview Excel-lover Excel Discussion (Misc queries) 7 August 30th 05 01:28 AM


All times are GMT +1. The time now is 01:04 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"