Solved

Application.OnTime in VB

Posted on 2002-03-08
9
371 Views
Last Modified: 2012-06-27
In VBA you could use Application.OnTime.
How do i do this in VB, when i want something to happen on a certain time for example every morning at 06:00??
Is there any function for this to be done whitout using an timer control?
0
Comment
Question by:Johan_Ihlberg
9 Comments
 
LVL 2

Accepted Solution

by:
tppradeep18 earned 50 total points
ID: 6850025
The following link gives nice information about how to use timer event without using timer control. HOpe ths helps.

http://support.microsoft.com/default.aspx?scid=kb;EN-US;q180736
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 6850097
you better use the scheduler from Windows that will launch your app at 6.
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6852252
I am with emoreau, but if you insist to use code follow previous link.
Cheers
0
Independent Software Vendors: 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 70

Expert Comment

by:Éric Moreau
ID: 6869336
please maintain
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 7060554
This question appears to be abandoned. A question regarding it will be left in the Community Support
area; if you have any comment about the question, please leave it here.

Unless there is objection or further activity, one of the moderators will be asked to accept the comment
of <emoreau>.

The link to the Community Support area is:
http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt

DO NOT ACCEPT THIS COMMENT AS AN ANSWER.
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7061035
I would like to see splitting points between emoreau and tppradeep18 since both provided valid solutions.
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 7061688
Personnaly, I would not use a VB app itself to wait for its time. I prefer having a scheduler, schedule the job, and free resources after the job is complete. Also, when schedule, the PC doesn't need to be logged.

But I don't have problem splitting points.
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7063828
As you could see, my first comment goes in the same way of thinking like yours. I like the split stuff since both of you deserve the points.
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 7065642
Thank you both, points have been split.

Points for emoreau -> http://www.experts-exchange.com/jsp/qShow.jsp?qid=20309549

Moondancer - EE Moderator
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VBA saving file message display 5 82
Visual Basic Excel Formatting error 4 140
Determine Range to Select 5 55
Child Form in front 4 55
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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 process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

679 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