Problem with Outlook.Application again

UniqueTII

What?
Local time
Today, 15:21
Joined
Apr 4, 2002
Messages
95
I got the Outlook library loaded and I can declare variables as Outlook.Application, but when I try to set .Attachments, I get an error saying that "one or more parameter values are not valid" I checked the file and it's valid, and I even tried using one on my C drive with no luck (the actual file is on a shared network drive). Anyone have any experience with this?

The line of code is just:
Code:
.Attachments = "H:\sfina\groups\FINAID\Stud_Emp\Database\DBtoWEB\jobs\ws\9999WS.html"

Is anything else needed?
 
Changed it to .Attachments.Add(file extension) and all is well. :)
 

Users who are viewing this thread

Back
Top Bottom