Results 1 to 6 of 6

Thread: [RESOLVED] color change the entire rows

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2007
    Posts
    241

    Resolved [RESOLVED] color change the entire rows

    I am trying to do from outlook to excel if the cell value is empty change the entire row will be yellow but i have error Cells(c.Row, 7).Value = ""
    Code:
    With Sheets("Sheet1").Range("C6:C29")
              Set c = .Find(MYName, LookIn:=xlValues)
              
              If Not c Is Nothing Then
                MyTime = olMail.ReceivedTime
             
                      Cells(c.Row, 7).Value = MyTime          
                    Else
                      Cells(c.Row, 7).Value  = ""
             Range(Cells(c.Row, 1), Cells(c.Row, 7)).Interior.ColorIndex = 35
                            End If
            End With
    Last edited by Hack; Jul 12th, 2010 at 10:54 AM. Reason: Fixed Code Tags

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width