C
Cyberwolf0000 via AccessMonster.com
Hi all,
The company I am working for right now is getting ready to switch from Lotus
Notes to Outlook 2007. As such, I have an email routine that sends a pdf
file to several recipients. I have been doing a lot of research on the code
to send a pdf attachment. I am having several problems.
1. In the code provided below I have several lines commented out. Then are
all of the set lines to set the to, cc, bcc, subject, body and attachments.
The reason I commented out these lines and just ised the .to, .cc, .bcc is
because the code breaks on the set lines. It gives the error message
"Runtime error 287, Application defined or object defined error" I did set
up my references to the Outlook and office 12.0 object libraries. So when I
just did the .to and so forth, it works fine until I get to the .attachments
= strAttachPathFile where it breaks and gives me the error "Runtime error 5,
invalid procedure call or argument." If I could get to work with the sets
that would be ideal, but I will take any fix that can be provided.
TIA,
--
James B Gaylord
For the Wolf comes the strength of the Pack,
For the Pack comes the strength of the Wolf,
-R. Kipling
Office 2003 on Win XP SP2
The company I am working for right now is getting ready to switch from Lotus
Notes to Outlook 2007. As such, I have an email routine that sends a pdf
file to several recipients. I have been doing a lot of research on the code
to send a pdf attachment. I am having several problems.
1. In the code provided below I have several lines commented out. Then are
all of the set lines to set the to, cc, bcc, subject, body and attachments.
The reason I commented out these lines and just ised the .to, .cc, .bcc is
because the code breaks on the set lines. It gives the error message
"Runtime error 287, Application defined or object defined error" I did set
up my references to the Outlook and office 12.0 object libraries. So when I
just did the .to and so forth, it works fine until I get to the .attachments
= strAttachPathFile where it breaks and gives me the error "Runtime error 5,
invalid procedure call or argument." If I could get to work with the sets
that would be ideal, but I will take any fix that can be provided.
TIA,
--
James B Gaylord
For the Wolf comes the strength of the Pack,
For the Pack comes the strength of the Wolf,
-R. Kipling
Office 2003 on Win XP SP2