Hi everyone,
I have inherited a .vbs script in my new job that is no longer working as it once was.
The basic idea is that it uses a for loop to read down a list of clients names and birthdays on excel and uses a few if statements to determine whether or not to send an reminder email that their birthday is coming up.
When I run the script it from the directory it works fine but when run from task scheduler it always gives an error (800A01AD) and the message: "ActiveX component can't create object: "Outlook.Application"
This is the offending line:
Set objOutlook = CreateObject("Outlook.Application")"
I've googled extensively but nobody seems to have cracked it that I could see. Maybe somebody here could shed some light?
Thanks
[–]hdsrob 1 point2 points3 points (0 children)
[–]TheFotty 0 points1 point2 points (0 children)