erikkeith via OfficeKB.com
Guest
Re: Border help
Yes, but how can I do it for just cells A through O? I find "Totals" on row
100 and then want cells adjust the borders for cells A:O for just that row. ?
????
Ron de Bruin wrote:
>You select the row with your code so if you record a macro you can add this to your code
>
>Cells.Find(What:="Totals", After:=ActiveCell, LookIn:=xlFormulas _
> , LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
> MatchCase:=False, SearchFormat:=False).EntireRow.Activate
>
> Selection.Borders(xlEdgeLeft).LineStyle = xlContinuous
> Selection.Borders(xlEdgeTop).LineStyle = xlContinuous
> Selection.Borders(xlEdgeBottom).LineStyle = xlContinuous
> Selection.Borders(xlEdgeRight).LineStyle = xlContinuous
>
>> You must not have understood my question. I want to be able to set up the
>> borders for cells A:O on the row that the "find" found what I was looking for.
>[quoted text clipped - 9 lines]
>>>>
>>>> I try to set up the borders for that entire row but it is not working. Help?
--
Message posted via http://www.officekb.com
Bookmarks