Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automating Email Excel VBA/Outlook and Windows Scheduler

Status
Not open for further replies.

rasage

Programmer
Nov 7, 2002
5
0
0
US
Hi,

I have an Excel Utility that automatically opens using the windows scheduler, the code is run using the workbooks Workbook_Open sub-routine.

I have utilized an email work-around ( of the Outlook security alert pop-up box.

I am having a problem with the emails getting caught in the drafts folder and not executing the *second time.
-----------------------
Set Sync = NS.SyncObjects.Item(1)
Sync.Start
------------------------
This preceding works the first time, but after Outlook is already opened, the second scheduled attempt at running the macro, is stuck in the Drafts folder of Outlook.

...Or after the process runs, it will not run again until after the machine is re-booted. I am trying to set up a process that requires minimal Human involvment.

Any ideas?


Thanks for any and all help.
Rasage
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top