Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks for taking the time to read my question.
I want to test if a cell has diagonal borders. How do I do this? I tried: If Range("C5").Borders(xlDiagonalDown) = True Then MsgBox "Yes" End If but it didn't work. Thanks for your help. Brad |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If Range("C5").Borders(xlDiagonalDown).LineStyle < xlNone Then
MsgBox "Yes" End If If Range("C5").Borders(xlDiagonalUp).LineStyle < xlNone Then MsgBox "Yes" End If HTH, -- Gary Brown If this post was helpful, please click the ''''Yes'''' button next to ''''Was this Post Helpfull to you?". "Brad" wrote: Thanks for taking the time to read my question. I want to test if a cell has diagonal borders. How do I do this? I tried: If Range("C5").Borders(xlDiagonalDown) = True Then MsgBox "Yes" End If but it didn't work. Thanks for your help. Brad |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Of course!
Thanks so much, Brad "Gary L Brown" wrote: If Range("C5").Borders(xlDiagonalDown).LineStyle < xlNone Then MsgBox "Yes" End If If Range("C5").Borders(xlDiagonalUp).LineStyle < xlNone Then MsgBox "Yes" End If HTH, -- Gary Brown If this post was helpful, please click the ''''Yes'''' button next to ''''Was this Post Helpfull to you?". "Brad" wrote: Thanks for taking the time to read my question. I want to test if a cell has diagonal borders. How do I do this? I tried: If Range("C5").Borders(xlDiagonalDown) = True Then MsgBox "Yes" End If but it didn't work. Thanks for your help. Brad |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Gary,
Can I do this? It's not working for me. do until Cells(x, a).Border(xlDiagonalDown).LineStyle < xlNone something here loop Brad "Gary L Brown" wrote: If Range("C5").Borders(xlDiagonalDown).LineStyle < xlNone Then MsgBox "Yes" End If If Range("C5").Borders(xlDiagonalUp).LineStyle < xlNone Then MsgBox "Yes" End If HTH, -- Gary Brown If this post was helpful, please click the ''''Yes'''' button next to ''''Was this Post Helpfull to you?". "Brad" wrote: Thanks for taking the time to read my question. I want to test if a cell has diagonal borders. How do I do this? I tried: If Range("C5").Borders(xlDiagonalDown) = True Then MsgBox "Yes" End If but it didn't work. Thanks for your help. Brad |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
diagonal split in a cell | Excel Discussion (Misc queries) | |||
Diagonal Borders | Excel Discussion (Misc queries) | |||
Creating cells with Diagonal borders | Excel Discussion (Misc queries) | |||
Can't print diagonal borders although they show on print preview | Excel Discussion (Misc queries) | |||
Can you make a cell with a diagonal, so that you can edit the upper and lower part of the cell? | New Users to Excel |