LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default Automated Email

Hey Guys,

i am having a problem at the moment trying to send a spreadsheet as the body
of an email automatically.

the workbook i am using has a main sheet, this sheet contains the names of
all the stores i need to contact, each store has a sheet and on this sheet is
the information i want to send formatted as a pivot table.

i need a macro sub that will allow me to input this sheet information (pivot
table) as the body of the email and then send it to an email address i will
specify in the code. this is what i have so far.

Sub SendMail()

Dim OutlookApp As Object
Dim MItem As Object

Set OutlookApp = CreateObject("Outlook.Application")

Set MItem = OutlookApp.CreateItem(0)
With MItem
.To = "
.Subject = "Report Details"
.Body = ThisWorkbook.Sheets("store1").Copy
.Send
End With
End Sub

this is gettin annoying.

the Noob.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i send an automated email from excel using an if statement Daniel Excel Worksheet Functions 0 August 5th 08 11:07 AM
Excel VBA macro to send email attachment from default email client wifigoo Excel Programming 2 April 12th 08 03:54 PM
can an automated notification (on xls file changes) email can be anat_ny Excel Discussion (Misc queries) 1 July 10th 07 07:16 PM
automated email for functioned cells skylinekiller Excel Programming 1 April 30th 04 12:45 PM
Automated Email Messages from Excel w/VBA Aaron[_7_] Excel Programming 2 July 30th 03 02:26 PM


All times are GMT +1. The time now is 01:21 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"