Hi.
This loop is driving me nuts.
I want to search in a range ("A1:U50") to find cells containing th
word "totals" (there is other text in the cell);
when I find such a cell, I want to apply certain formatting to a cel
below it (this part I am ok with).
WHen it finds all the cells, I want the loop to end, but it doesn'
stop!
My code
Sub FormatMonths ()
With worksheets("unit forecast").range("A1:U50")
chktot=cells.find(what:="*totals*").activate
Do while chcktot=true
activecell.offset(1,0).range("a1").select
Selection.font.colorindex=3
cells.find(what:="*totals*").activate
Loop
End With
End Sub
Please help if you can.
CHristiane
:confused
--
Message posted from
http://www.ExcelForum.com