Wrox Programmer Forums
|
VB Databases Basics Beginning-level VB coding questions specific to using VB with databases. Issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Databases Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 6th, 2007, 04:20 PM
Registered User
 
Join Date: Jul 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to dlalexan
Default Writing a Macro for a clock

I was wondering if there was anyway to write a macro so that a cell would hold current time and keep refreshing it so it was accurate. I have been working at it for while now.

donnie alexander
 
Old July 9th, 2007, 04:08 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

No. Macros run in response to actions, not constantly in the background.

To keep a time-piece updating (if you don’t have an ActiveX control that already does this), you need to trigger the update several times per second (if you are showing seconds) or every couple of seconds (if you are only resolving down to minutes).





Similar Threads
Thread Thread Starter Forum Replies Last Post
Clock jeremy1048 Access 2 August 22nd, 2008 06:55 AM
calling to xlam macro from macro inside xlsb SteveB Excel VBA 0 June 30th, 2008 06:43 PM
Writing A Macro Venusbj VB How-To 2 January 30th, 2008 01:10 AM
Displaying a clock hdfireftr Visual Basic 2005 Basics 2 September 15th, 2006 01:12 PM
Countdown clock Ciarano Beginning VB 6 1 March 12th, 2004 07:45 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.