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: 1
Default How can i attach active workbook to email- please see the macro


This is the part of the macro that I created.

Sheets("Contract Expiration Report").Copy
Set MItem = OutlookApp.CreateItem(0)
With MItem
.To = EmailAddr
.Subject = RegionToGet
.Body = Msg
.Display
End With
ActiveWorkbook.Close Savechanges:=False

The whole macro filter out certain records, saves them in a sheet an
then is supposed to send the sheet to EmailAddr. The problem is tha
everything but the sheet goes. Can you tell me how to attach tha
sheet?
Or how can I attach newly created files in general

--
stri
-----------------------------------------------------------------------
stric's Profile: http://www.excelforum.com/member.php...fo&userid=2523
View this thread: http://www.excelforum.com/showthread.php?threadid=38727

 
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 to attach doc.to an email? Pam B. New Users to Excel 1 February 15th 10 05:08 AM
How can I attach a hyperlinked object in a workbook cell to email MMattyK New Users to Excel 0 December 1st 09 01:10 PM
How to attach an excel workbook to an email using a hyperlink? Wk Excel Discussion (Misc queries) 1 January 20th 06 01:44 AM
Vb Macro to attach sheet and send by email Jamie Excel Programming 1 November 4th 04 11:42 AM
email shortcut to active workbook as an outlook attachment Neil Deinhardt Excel Programming 0 September 28th 04 08:14 PM


All times are GMT +1. The time now is 07:29 AM.

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

About Us

"It's about Microsoft Excel"