Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 1
Default Sending a mail via outlook excel 2003

I had to send a email every day via excel 2003..it is a big range equivalent to 4 pages (b2:j300) with tables and charts...I have already a macro but it is not really a good one as I have to the finish the work by doing control V to past inside the mail the picture...and when I send the mail, the picture is not good and moves...so I am looking for ideas in order to send my range with charts properly with a nice picture in the body of the mail and a pdf file if possible...I don't mind if it is not automatic (opening of email) as I prefer to check before cliking on send at the end...current macros does not send a range with charts..So I am looking forward for any help ..here is my current macro...thks in advance for your help


Sub Send1()
ThisWorkbook.Activate
Worksheets("Global strat").Activate
Application.ScreenUpdating = False
Application.DisplayAlerts = False

Dim ws As Worksheet
Set ws = ThisWorkbook.Worksheets("Global strat")

Dim aname As Name
Set aname = ThisWorkbook.Names("Impression")
aname.RefersToRange.Select

aname.RefersToRange.Copy

Dim objOL As New Outlook.Application
Dim objMail As MailItem
Set objMail = objOL.CreateItem(olMailItem)
objMail.Display

With objMail
.BCC = "
.Subject = "Strategies "

End With

Set objMail = Nothing
Set objOL = Nothing

Const OverwriteExisting = True
Set ObjFSO = CreateObject("Scripting.FileSystemObject")
ObjFSO.CopyFile "P:\.gif", "P:\\", OverwriteExisting

Dim FS
Set FS = CreateObject("Scripting.FileSystemObject")

Application.ScreenUpdating = True
Application.DisplayAlerts = TrueEnd Sub

Last edited by lussac : October 23rd 12 at 10:03 AM Reason: excel programming
Reply
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
Sending a Mail from outlook with body coming from excel file PauloD Excel Discussion (Misc queries) 1 November 11th 10 01:59 PM
Sending Email from within Excel 2003 using Outlook 2003 watermt Excel Discussion (Misc queries) 1 April 22nd 09 07:47 PM
Problems sending mail from Excel to Outlook Big Chris[_41_] Excel Programming 3 January 25th 06 04:44 PM
Sending Outlook mail through Excel mikems Excel Programming 1 October 12th 04 06:25 PM
sending outlook mail bilal Excel Programming 1 July 25th 03 01:16 PM


All times are GMT +1. The time now is 09:20 AM.

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"