Results 1 to 5 of 5

Show Date on Timer and Change Formatting when Approaching Deadlines

Threaded View

yuusei Show Date on Timer and Change... 04-30-2017, 04:14 AM
Logit Re: Show Date on Timer and... 04-30-2017, 11:26 AM
yuusei Re: Show Date on Timer and... 04-30-2017, 12:42 PM
Logit Re: Show Date on Timer and... 04-30-2017, 12:43 PM
Tsjallie Re: Show Date on Timer and... 04-30-2017, 03:09 PM
  1. #1
    Registered User
    Join Date
    04-30-2017
    Location
    Manila
    MS-Off Ver
    OFFICE 2013
    Posts
    2

    Show Date on Timer and Change Formatting when Approaching Deadlines

    Hi guys,

    I'm fairly new to macros and coding, but I want to do some stuff to simplify our work tracker.

    I want to set a running timer, which I will use to track deadlines. I copied the code below online, but it's not showing the date properly. Changing the formatting shows the date as 01/01/1900. Is there a way to show the date today on this?

    Dim SchedRecalc As Date
    
    Sub Recalc()
    
    With Sheet1.Range("H3")
    
    .Value = Format(Time, "hh:mm:ss AM/PM")
    
    End With
    
    Call SetTime
    
    End Sub
    
    Sub SetTime()
    
    SchedRecalc = Now() + TimeValue("00:00:01")
    
    Application.OnTime SchedRecalc, "Recalc"
    
    End Sub
    
    Sub Disable()
    
    On Error Resume Next
    
    Application.OnTime EarliestTime:=SchedRecalc, Procedure:="Recalc", Schedule:=False
    
    End Sub
    For the next issue, I want to compare the value on the timer with the set deadlines. I want that with a click of the button, rows that are an hour before the deadline will change to orange. then set the format to red if they are over the deadline. Can anyone suggest a code for this?

    Thanks in advance for your help.
    Last edited by yuusei; 04-30-2017 at 04:16 AM. Reason: phrasing issues

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Conditional formatting for dates approaching deadlines
    By mommyof3Teens in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-02-2016, 10:55 AM
  2. Conditional Formatting for approaching deadlines
    By jasonjhc in forum Excel General
    Replies: 1
    Last Post: 09-17-2014, 02:43 PM
  3. CF to colour cells that show a date approaching todays date
    By alexander.small in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-24-2013, 05:23 AM
  4. [SOLVED] Forumla/Formatting Cells Based on Date/Deadline Approaching
    By -Mat- in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-02-2012, 08:29 AM
  5. Conditional Formatting for deadlines
    By Mduncan88 in forum Excel General
    Replies: 1
    Last Post: 08-02-2012, 07:53 AM
  6. Conditional Formatting - Date Deadlines
    By adamgwsmith in forum Excel General
    Replies: 1
    Last Post: 01-19-2010, 12:12 PM
  7. conditional formatting deadlines
    By Joooooooo in forum Excel General
    Replies: 2
    Last Post: 02-07-2005, 10:06 AM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1