application On time

C

Chris

Code 1 should execute at 5:19 and run the filecopy. It does nothing.
But if i changed it to code 2 it does work but then it run's it every
time word is starteded instead of only at 5:19 like it should. I am a
bit confused.

Code 1

Sub AutoExec()
Application.OnTime When:=TimeValue("17:19:00"),
Name:="ksg.module1.FileCopyToA"
End Sub


Code 2



Sub AutoExec()
Application.OnTime When:="17:19:00", Name:="ksg.module1.FileCopyToA"
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top