+ Reply to Thread
Results 1 to 4 of 4

Running Clock in Excel with different Time Zone

  1. #1
    Registered User
    Join Date
    11-28-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    3

    Smile Running Clock in Excel with different Time Zone

    Need running clock in Excel... in A1 I have put running clock which is taking current system time. However, I want to add running clocks for EST in B1 - CST in C1 and PST in D1. Any help much appreciated.

    Atatching excel... if anyone can update in same and attach back, will be very thankful.

    VB code I used to display current system running clock

    Global clockOn As Boolean
    Sub runClock()
    Range("A1").Value = Now()
    If clockOn = True Then
    Application.OnTime Now + TimeValue("00:00:01"), "runClock"
    End If
    End Sub
    Sub startClock()
    clockOn = True
    runClock
    End Sub
    Sub stopClock()
    clockOn = False

    End Sub
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Running Clock in Excel with different Time Zone

    Hi - here is a link to describe how to get the timezone, from there you can offset as neccessary to the different zones:
    http://www.cpearson.com/excel/TimeZo...lightTime.aspx

  3. #3
    Registered User
    Join Date
    11-28-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Running Clock in Excel with different Time Zone

    Gone through that link but litlle confused. Not that much familier with the codes

  4. #4
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Running Clock in Excel with different Time Zone

    http://www.mrexcel.com/forum/excel-q...time-zone.html

    Is that link any more help? Looking at post #5 put the code at the bottom in a module and then use:
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Running clock in excel 2010
    By Rhett21 in forum Excel General
    Replies: 1
    Last Post: 10-22-2012, 12:18 PM
  2. Excel Time zone problem
    By bittu2010 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-15-2012, 11:37 PM
  3. Need to start Clock according to Zone wise
    By marc5354 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-18-2010, 04:04 PM
  4. How to start a clock according to zone wise
    By marc5354 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-16-2010, 07:52 PM
  5. [SOLVED] time:is their a way to get excell to display a running clock.
    By Rich in forum Excel General
    Replies: 1
    Last Post: 12-17-2005, 05:50 AM

Tags for this Thread

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