?
Solved

Application.OnTime in VB

Posted on 2002-03-08
9
Medium Priority
?
374 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
[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
9 Comments
 
LVL 2

Accepted Solution

by:
tppradeep18 earned 200 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
Suggested Courses
Course of the Month13 days, 9 hours left to enroll

801 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