We help IT Professionals succeed at work.
Get Started

Active Cell = Today  ?

Last Modified: 2017-05-14
I am trying to check the value of a cell, to see if it is equal to today date or not?

Format of the ActiveCell is:

  : StartTimeStamp : #5/1/2017 7:57:12 AM# : Variant/Date

Here is what I have so far.  How do I get this to a True or Yes?  Keeps returning False/No.   Any ideas?

Sub Macro2()
    Range("B1000").Select  'No days task items should ever reach 1000 lines

    StartTimeStamp = ActiveCell.Value
    Do While Not StartTimeStamp = Now()
        StartTimeStamp = ActiveCell.Value
        MsgBox ("No")
        ActiveCell.Offset(-1, 0).Select

End Sub

Open in new window

Watch Question
This problem has been solved!
Unlock 4 Answers and 13 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE