Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

current system date

Status
Not open for further replies.

ratman

Technical User
Jun 26, 2000
143
US
I need to know how to compare ( &gt; ) an activecell date read on an Excel spreadsheet by my macro (cell is already formatted as &quot;m,d,yyyy&quot;) to the actual current system date.<br>Global declaration for this????<br><br>My variable for this is currentdate as in.....<br>Sub readcell()<br>ActiveCell.Select<br>If ActiveCell.Value = Date Then<br>If ActiveCell.Value &gt; currentdate<br>
 
I LOVE ANSWERING MY OWN QUESTIONS......HEHEHEHE<br>ActiveCell.Select<br>dateman = ActiveCell.Value<br>If isdate(dateman) = True Then<br>GoTo isdateman<br>Else<br>End If
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top