?
Solved

Timer Control

Posted on 2007-04-08
8
Medium Priority
?
228 Views
Last Modified: 2010-04-30
Hi: I try to find Timer Control or Microsoft Timer control in the component window but i didnt find any thing like that. Can any one please tell me how to i find the timer control also is this code is correct?

Private Sub Form_Load()
'Timer1.Interval = 1000
End Sub

Private Sub Timer1_Timer()
    If Time = #8:00:00 AM# Then
      'readExcelFile
   End If
End Sub
0
Comment
Question by:mustish1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
8 Comments
 
LVL 67

Expert Comment

by:sirbounty
ID: 18873151
Code is correct- the timer is on your tool box - looks like a stop watch.
You need to remove the apostrophe to uncomment and make the code valid, of course...
0
 
LVL 67

Expert Comment

by:sirbounty
ID: 18873155
0
 

Author Comment

by:mustish1
ID: 18873164
Thanks. I try to find in the components
1.Microsoft Timer Control
2. Timer Control
I didnt find any of them in it
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 86

Expert Comment

by:Mike Tomlinson
ID: 18873169
Are you working in VB6 or one of the Office applications?  It doesn't exist in Office VB...
0
 

Author Comment

by:mustish1
ID: 18873171
In VB6
0
 
LVL 67

Accepted Solution

by:
sirbounty earned 2000 total points
ID: 18873173
Do you see the stop watch on your tool box?  The icon looks like the one in the link...Here's another image showing where it is...http://www.voxcommunications.com/sky/vbtoolbar_clock.jpg
0
 

Author Comment

by:mustish1
ID: 18873176
Ah. Thank You Sir Bounty.
0
 
LVL 67

Expert Comment

by:sirbounty
ID: 18873247
Glad I could help! :^)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month12 days, 17 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question