Quick question RE: Finding a cell by interior color

  • Thread starter Thread starter Celt
  • Start date Start date
C

Celt

Thanks in advance!!

I have Set a Range based on finding a cell that is shaded a certai
color. I have used the statement:

Application.FindFormat.Interior.ColorIndex = 24

If I am to Set any other Ranges after this one using "find", does th
FindFormat statement need to be cleared out?

I noticed when I use the find function on the command menu, th
previous search options are still selected. Is this also true whe
doing this through a macro?

I hope this makes sense...
 
Hi Celt,

Application.FindFormat.Clear
Should do the job ... if need be ...

HTH
Cheers
Carim
 
Does this help:

Application.FindFormat.Clear

Application.FindFormat.Interior.ColorIndex = 6

Cells.Find(What:="", After:=ActiveCell, LookIn:=xlFormulas, LookAt:= _
xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext,
MatchCase:=False _
, SearchFormat:=True).Activate

Application.FindFormat.Clear
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top