Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi StargateFan,
are you speaking of text as opposed to digits and just characters other than a-z and A-Z? Then, if UCase(cell.value) < LCase(cell.value) there is at least one letter in it. Instead of putting a border just on the cells that have text in the selected area, it puts a border on everything on the rows of the selected cells which defeats the purpose <g. Hmm... See also: http://tinyurl.com/2jbleh for empty vs null vs "" Sub Test4000B() Dim oCll As Range For Each oCll In ActiveSheet.UsedRange If Not LCase(oCll.Value) = UCase(oCll.Value) Then oCll.Borders(xlEdgeBottom).LineStyle = xlContinuous oCll.Borders(xlEdgeBottom).Weight = xlHairline oCll.Borders(xlEdgeBottom).ColorIndex = 1 Else ' otherwise remove border, skip this one if you like oCll.Borders(xlEdgeBottom).LineStyle = xlNone End If Next End Sub -- Greetings from Bavaria, Germany Helmut Weber Win XP, Office 2003 "red.sys" & Chr$(64) & "t-online.de" |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Paste-linking cells from Excel leaves a border in PP | Charts and Charting in Excel | |||
Border at bottom of worksheet | Excel Discussion (Misc queries) | |||
Repeat bottom Border | Excel Discussion (Misc queries) | |||
Apply Border | Excel Programming |