Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
es
 
Posts: n/a
Default email active worksheet

Sub Mail_ActiveSheet_Body()
Dim OutApp As Outlook.Application
Dim OutMail As Outlook.MailItem
This is the macro
Application.ScreenUpdating = False
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(olMailItem)
With OutMail
.To = "
.CC = ""
.BCC = ""
.Subject = "Confromation"
.HTMLBody = (ActiveSheet) *********************
.Send 'or use .Display
End With
Application.ScreenUpdating = True
Set OutMail = Nothing
Set OutApp = Nothing
End Sub


at ********* run time error = object doesn't support this
property or methord.

Please help I am trying to compile a makro that will mail
the active sheet as the message body.
  #2   Report Post  
Ron de Bruin
 
Posts: n/a
Default

You must copy the function also in the module
See my webpage

http://www.rondebruin.nl/mail/folder3/mail2.htm

--
Regards Ron de Bruin
http://www.rondebruin.nl



"es" wrote in message ...
Sub Mail_ActiveSheet_Body()
Dim OutApp As Outlook.Application
Dim OutMail As Outlook.MailItem
This is the macro
Application.ScreenUpdating = False
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(olMailItem)
With OutMail
.To = "
.CC = ""
.BCC = ""
.Subject = "Confromation"
.HTMLBody = (ActiveSheet) *********************
.Send 'or use .Display
End With
Application.ScreenUpdating = True
Set OutMail = Nothing
Set OutApp = Nothing
End Sub


at ********* run time error = object doesn't support this
property or methord.

Please help I am trying to compile a makro that will mail
the active sheet as the message body.



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
email worksheet james Excel Discussion (Misc queries) 1 January 21st 05 10:30 PM
Weekly Transaction Processing Ralph Howarth Excel Worksheet Functions 4 January 19th 05 05:37 AM
If I mistakingly click on the email button on a worksheet, how do. Snookums Excel Discussion (Misc queries) 1 December 23rd 04 04:07 PM
copy worksheet from closed workbook to active workbook using vba mango Excel Worksheet Functions 6 December 9th 04 07:55 AM
Excel 2003 - referenceing the active worksheet page in vlookup Ernst Excel Worksheet Functions 4 November 6th 04 11:23 PM


All times are GMT +1. The time now is 06:22 PM.

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"