Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
My apologies for the delayed response, this was indeed (after a bit of
tweaking, headaches and frustration!) the correct method for the task I was needing to do. Many thanks for pointing me where I should have looked first! Regards, Str8 On 4 Feb, 13:37, "Jim Cone" wrote: Review the example code in Help for the Find method. Note the use of the Set statement and the FindNext method... '-- With Worksheets(1).Range("a1:a500") * * Set c = .Find(2, lookin:=xlValues) * * If Not c Is Nothing Then * * * * firstAddress = c.Address * * * * Do * * * * * * c.Interior.Pattern = xlPatternGray50 * * * * * * Set c = .FindNext(c) * * * * Loop While Not c Is Nothing And c.Address < firstAddress * * End If End With '-- Also, avoid the use of On Error Resume Next. -- Jim Cone San Francisco, USAhttp://www.realezsites.com/bus/primitivesoftware (Excel Add-ins - "Find and List" - find multiple items on multiple sheets) |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Search an alphanumeric in a column and return true/false | Excel Worksheet Functions | |||
Search for 2 true arguments and return true or false | Excel Discussion (Misc queries) | |||
Search column for value and return TRUE or FALSE | Excel Worksheet Functions | |||
Return blank cell if 'find' statement not true | Excel Worksheet Functions | |||
Function to return True/False if all are validated as True by ISNU | Excel Worksheet Functions |