Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Find loop doesn't loop | Excel Discussion (Misc queries) | |||
Loop all Sheets not working. | New Users to Excel | |||
On Error GoTo Label in a loop only working once. | Charts and Charting in Excel | |||
Find & loop in VBA | Excel Discussion (Misc queries) | |||
Loop - for each sheet not working? | Excel Programming |