LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 59
Default Compare date in cell to date in Textbox

I am having trouble trying to compare dates that are in a worksheet cell
against a date placed in a Textbox. Here's the code:

If Cells(Drow, 5).Value < TextStart.Value And Not (Left(Cells(Drow,
10).Value, 1) Like "[D]") Then
Rows(Drow).Select
Selection.Interior.ColorIndex = 34
End If

The problem is that it changes all the cells to colorindex 34. I need it to
only change the colorindex of those rows that are prior to the textStart.value

Thanks in advance
 
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 compare a cell containing a date in sumif criteria Retired Nick Excel Worksheet Functions 5 June 13th 08 03:09 PM
Compare multiple dates, can enumerate cell based on most recent date Brian Excel Worksheet Functions 7 May 9th 06 11:02 PM
Compare dates (one cell not in date format) craigcsb Excel Discussion (Misc queries) 5 June 28th 05 05:07 PM
Compare Date in Cell VS a Variable Date to Hide Row JimI Excel Programming 3 October 10th 04 04:26 PM
converting date from a textbox to a date format neowok[_17_] Excel Programming 5 February 23rd 04 01:40 PM


All times are GMT +1. The time now is 05:15 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"