Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default find word in a cell then change cell format

I want to find some words in cells

and then change the color of cell if find.

eg. a cell contain "hello I am moto"
if macro find "am" then change the cell color

anybody know how to write the macro ?
Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 81
Default find word in a cell then change cell format


If InStr(1, Range("A1").Value, "am") 0 Then
Range("E3").Interior.ColorIndex = 1
End If

Try this.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 430
Default find word in a cell then change cell format

Use Conditional Formatting using this formula
after selecting Formula is:

=ISNUMBER(FIND("am",A1,1))

Color accordingly

HTH


wrote in message
oups.com...
I want to find some words in cells

and then change the color of cell if find.

eg. a cell contain "hello I am moto"
if macro find "am" then change the cell color

anybody know how to write the macro ?
Thanks



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
How to change format for an individual word in a cell jaysan3 Excel Discussion (Misc queries) 1 August 28th 09 11:03 AM
Find a cell with a word and then return the next cell down pgarcia Excel Discussion (Misc queries) 5 August 12th 08 07:48 PM
word match in string text in cell, color format cell jpmahony Excel Discussion (Misc queries) 1 October 31st 07 03:56 PM
Change the appearance cell where Find criteria is found in a cell Tomszar Excel Discussion (Misc queries) 3 December 30th 05 02:48 PM
Change format of single word in cell Zenon Excel Programming 1 June 22nd 04 04:02 PM


All times are GMT +1. The time now is 06:09 AM.

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"