• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Attachment with outlook

sasi251904

New Member
Hi All, I am sasi kanth. I have written a code for sending Excel sheet as an attachment with outlook, How ever i am able to send only E-mail but not the attachment.MY code is as follows

Sub mail()

Dim ouapp as object

dim outmail as object

set outapp=createobject("outlook.application")

set outmail=outapp.createitem

on eror resume next

with outmail

.to= " "

.cc=" "

.bcc=" "

.subject=" "

.body=" "

.attachment.addactiveworkbook.ful

.send

en error goto 0

set outmail=ntng

set outapp=ntng


please help...Thank you for the support!!
 
Good day sasi251904


The master in sending email from Outlook and Excel is here


http://www.rondebruin.nl/sendmail.htm
 
Back
Top