Hi all,

I have this code.

VB Code:
  1. For i = 0 To grdDiary.Rows - 1
  2.      
  3.       ' Selects the disired row.
  4.       grdDiary.Row = i
  5.  
  6.       ' Sets the text on the row
  7.       grdDiary.Text = DateAdd("d", i - 1, sMonth)
  8.      
  9.       ' If the text on the row is the same as todays date
  10.       If grdDiary.Text = CStr(DateTime.Date) Then
  11.         ' ????
  12.       Else
  13.         ' ????
  14.       End If
  15.      
  16. Next i
Basically the loop will run through each row setting every date in the month on the left column, what I want it to do is when it finds todays date, highlight it in some way.

The text cannot change, but it can change color or I could place an picture behind it. I just want the cell to be highlighted, not the row.

its a standard vb6 grid.

Any ideas?

Many thanks in advance...

Mark