MrExcel Message Board


Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old Mar 30th, 2004, 02:41 AM   #1
dunder
 
Join Date: Mar 2004
Posts: 1
Default Timer control in Excel

Does anybody know how to get the timer control (as in VB6) into Excel ? I've tried adding a reference to the comctl32.ocx file, but it doesn't appear in the list of available controls. Failing that, is there any other way to get similar functionality ?

Thanks,

Dunder
dunder is offline   Reply With Quote
Old Mar 30th, 2004, 06:58 PM   #2
Damon Ostrander
MrExcel MVP
 
Damon Ostrander's Avatar
 
Join Date: Feb 2002
Location: Denver, Colorado USA
Posts: 3,876
Default Re: Timer control in Excel

Hi Dunder,

I'm not sure the Timer control can be used in Excel. This functionality is usually achieved in VBA through the Application object's OnTime method. For example

Application.OnTime Now() + 10/86400, "MyMacro"

will run MyMacro 10 seconds from now. You can get details on the OnTime method in the VBA helps.

Damon
Damon Ostrander is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT +1. The time now is 09:25 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
All contents Copyright 1998-2009 by MrExcel Consulting.