ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Quick question Finding a cell by interior color (https://www.excelbanter.com/excel-programming/358105-quick-question-re-finding-cell-interior-color.html)

Celt[_43_]

Quick question Finding a cell by interior color
 

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...

--
Cel
-----------------------------------------------------------------------
Celt's Profile: http://www.excelforum.com/member.php...fo&userid=1941
View this thread: http://www.excelforum.com/showthread.php?threadid=53010


Carim

Quick question Finding a cell by interior color
 
Hi Celt,

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

HTH
Cheers
Carim


Access101

Quick question Finding a cell by interior color
 
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



"Celt" wrote:


Thanks in advance!!

I have Set a Range based on finding a cell that is shaded a certain
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 the
FindFormat statement need to be cleared out?

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

I hope this makes sense....


--
Celt
------------------------------------------------------------------------
Celt's Profile: http://www.excelforum.com/member.php...o&userid=19413
View this thread: http://www.excelforum.com/showthread...hreadid=530108



Celt[_44_]

Quick question Finding a cell by interior color
 

Perfect!
Thanks for the help Carim and Access101 !!!


--
Celt
------------------------------------------------------------------------
Celt's Profile: http://www.excelforum.com/member.php...o&userid=19413
View this thread: http://www.excelforum.com/showthread...hreadid=530108



All times are GMT +1. The time now is 05:38 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com