Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 8th, 2008, 05:56 AM
Registered User
 
Join Date: Feb 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Macro to send an email with an attachment in it

Hi people,

I want to send an email using a macro in excel.The email will also have a report in excel format as an attachment. Can anybody help me out??


Thanks in advance.

Samputha

 
Old August 13th, 2009, 07:18 AM
Registered User
 
Join Date: Dec 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Can u tell me attachment as a workbook or worksheet?
 
Old August 13th, 2009, 09:12 PM
Friend of Wrox
 
Join Date: Sep 2005
Posts: 812
Thanks: 1
Thanked 53 Times in 49 Posts
Default

Quote:
Originally Posted by samputha View Post
Hi people,

I want to send an email using a macro in excel.The email will also have a report in excel format as an attachment. Can anybody help me out??


Thanks in advance.

Samputha
Here is a hint using Outlook VBA

http://vbadud.blogspot.com/2007/10/a...ng-visual.html

If you want to send the workbook using default mail system, you can use WorkbookObject.SendMail

Cheers
Shasur
__________________
C# Code Snippets (http://www.dotnetdud.blogspot.com)

VBA Tips & Tricks (http://www.vbadud.blogspot.com)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Using vb6 to send email with attachment LeonMK Pro VB 6 3 August 25th, 2011 01:56 AM
Excel Macro - Send Email and Attachments robmill101 Excel VBA 1 October 21st, 2008 08:10 AM
how to send email with attachment using JSP kirtesh4u J2EE 0 May 19th, 2007 01:17 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.