Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 510
Default Quick question Finding a cell by interior color

Hi Celt,

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

HTH
Cheers
Carim

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default 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


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cell interior color JohnB Excel Discussion (Misc queries) 4 October 12th 06 06:07 PM
interior color of a cell R.VENKATARAMAN Excel Programming 9 November 11th 05 04:15 AM
Finding Cell Interior Colour of First Cell in Column ExcelMonkey[_190_] Excel Programming 4 March 22nd 05 03:01 AM
Interior Cell color Pellechi Excel Programming 1 September 23rd 03 03:39 PM


All times are GMT +1. The time now is 03:49 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"