Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Cue Cue is offline
external usenet poster
 
Posts: 47
Default Input 'MATCH' If Match

Greetings,

The following code colors the row the matches the criteria. But I would like
the code to insert the word 'MATCH' in column 'Z' to each row that matches
the criteria. I am assuming the line with the stars is the only line I have
to change. But I have tried numerous ways but was unsuccessful. Can someone
show me what it should be?

Dim myCell As Range
Dim myrng As Range
Set myrng = Sheets("C&D").Range("$B$1:$B$50")

For Each myCell In myrng.Cells
whatwant = myCell.Value


For Each rCell In Sheets("MultAdjDaily").Range("$C$6:$C$1200")
If rCell.Value Like whatwant And rCell.Value 0 Then

*****rCell.EntireRow.Resize(1, 14).Interior.ColorIndex = 43*****

End If
Next cell
Next micelle

Thanks for your time...
--
Cue
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Input 'MATCH' If Match

Cells(rcell.Row, "Z").Value = ("MATCH")
--
Gary''s Student - gsnu200811
  #3   Report Post  
Posted to microsoft.public.excel.misc
Cue Cue is offline
external usenet poster
 
Posts: 47
Default Input 'MATCH' If Match

Gracias Gary. Muchas gracias!
--
Cue


"Gary''s Student" wrote:

Cells(rcell.Row, "Z").Value = ("MATCH")
--
Gary''s Student - gsnu200811

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Input 'MATCH' If Match

Glad to help!
--
Gary''s Student - gsnu200811


"Cue" wrote:

Gracias Gary. Muchas gracias!
--
Cue


"Gary''s Student" wrote:

Cells(rcell.Row, "Z").Value = ("MATCH")
--
Gary''s Student - gsnu200811

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
index(match) Wind Uplift Calculations (match four conditions) JMeier Excel Worksheet Functions 8 August 1st 08 01:45 AM
MATCH Multiple Criteria & Return Previous / Penultimate Match Sam via OfficeKB.com Excel Worksheet Functions 27 October 6th 07 01:39 AM
Lookup? Match? pulling rows from one spreadsheet to match a text f cjax Excel Worksheet Functions 3 July 21st 06 02:51 PM
Match function in a two input table Anh Excel Worksheet Functions 4 December 25th 05 10:07 PM
How do I match two cells and input a value in a different cell? pensfan Excel Worksheet Functions 2 November 16th 04 05:52 PM


All times are GMT +1. The time now is 01:15 PM.

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

About Us

"It's about Microsoft Excel"