ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Digital Clock (https://www.excelbanter.com/excel-programming/392858-digital-clock.html)

Caleb Runnels

Digital Clock
 
I want to be able to put a macros digital clock as a label on a userform but
can't figure out haw to do it. Any suggestions?



Tom Ogilvy

Digital Clock
 
Try using application.Ontime

http://www.cpearson.com/excel/ontime.htm

--
Regards,
Tom Ogilvy


"Caleb Runnels" wrote:

I want to be able to put a macros digital clock as a label on a userform but
can't figure out haw to do it. Any suggestions?




Rick Rothstein \(MVP - VB\)

Digital Clock
 
I want to be able to put a macros digital clock as a label on a
userform but can't figure out haw to do it. Any suggestions?


Maybe you can make use of the information in this previous posting of
mine...

Give this a try. Right-click the UserForm's ToolBox and select "Additional
Controls" from the popup menu that appears. Scroll down to "Microsoft Status
Bar Control 6.0" and select it. This will add the "Status Bar" control to
the Toolbox. Place a "Status Bar" control on your UserForm. Highlight
(select) it and click on the Custom property in the Properties window and
click on the button with the "three-dots" caption. You can play around with
adding panels and what not, but for your requested option, click on the
Panels tab. One panel should already exist on the "Status Bar" by default.
Change that panel's Alignment property to 2-sbrRight, Style property to
5-sbrTime and AutoSize property to 1-sbrSprint. Hit OK and watch the
displayed time change automatically.

Rick



All times are GMT +1. The time now is 05:30 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com