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 January 29th, 2012, 04:24 AM
Registered User
 
Join Date: Jan 2012
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default Code to send mail from Excel sheet to Outlook

Hi,

I am using Office 2007 pack and want to send E-mail to a particular group every day.

I want to say My Excel looks llike below :
Example:
Date problem Solution Author Location
29-Jan-12 issue 1 Fixed Deepak India
30-Jan-12 issue 2 Fixed Deepak india

On 29-Jan i want to send a mail saying the Problem = 'Issue1', Solution = 'Fixed', Author = 'Deepak', Location = 'India'.

Can anyone help me in writing the Macro for this .

You can send the mail on my Email Id - [email protected] or reply on the post.

regards,
Deepak
 
Old January 29th, 2012, 11:45 AM
Friend of Wrox
 
Join Date: Sep 2005
Posts: 812
Thanks: 1
Thanked 53 Times in 49 Posts
Default

Hi

You can use Workbook.Sendmail if you want to send the entire workbook by mail. If you try to do with Outlook you can have an elegant solution

I have tried using Outlook (http://vbadud.blogspot.com/2007/04/vba-email-automation-vba-mail.html)

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

VBA Tips & Tricks (http://www.vbadud.blogspot.com)
 
Old February 4th, 2012, 04:28 PM
Registered User
 
Join Date: Jan 2012
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default Code to send mail from Excel sheet to Outlook

Hi Shasur,

I only want to send the Entry per day from the Excel Sheet .

As i have already suggested in the Example. If you can help me on this it?

Thanks
Deepak
 
Old February 5th, 2012, 12:18 AM
Friend of Wrox
 
Join Date: Sep 2005
Posts: 812
Thanks: 1
Thanked 53 Times in 49 Posts
Default

Hi Deepak

You need to go for the Outlook Automation.

The example gives you some hint on how to automate Outlook and use the values from Excel. If you are new to Outlook automation - please have a look at http://msdn.microsoft.com/en-us/library/ee814736.aspx

This is very good to start with

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

VBA Tips & Tricks (http://www.vbadud.blogspot.com)
The Following User Says Thank You to Shasur For This Useful Post:
Deepak.Tulsiani (June 5th, 2012)
 
Old June 5th, 2012, 04:12 PM
Registered User
 
Join Date: Jan 2012
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Thanks Shasur,

I will go through that document, but still if you have any suggestion regarding the code that would be great.

Cheers,
Deepak





Similar Threads
Thread Thread Starter Forum Replies Last Post
To send email from excel sheet . honey26 Excel VBA 10 December 20th, 2011 12:27 PM
Mail Excel sheet in outlook with original name. Europom Excel VBA 1 April 26th, 2009 10:11 PM
vba work outlook with excel sheet qunatphil Excel VBA 1 April 16th, 2008 12:30 PM
How to send an Outlook mail item to a URL haiying Access VBA 0 April 29th, 2005 08:08 AM
Send mail NOT via Outlook Mitch Access 8 March 22nd, 2004 06:17 AM





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