Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 84
Default emailing a sheet

Sub Send_Range()

' Select the range of cells on the active worksheet.
ActiveSheet.Range("f2:g7").Select

' Show the envelope on the ActiveWorkbook.
ActiveWorkbook.EnvelopeVisible = True

' Set the optional introduction field thats adds
' some header text to the email body. It also sets
' the To and Subject lines. Finally the message
' is sent.
With ActiveSheet.MailEnvelope
.Introduction = "TESTER"
.Item.To = "
.Item.Subject = "test"
.Item.Send
End With
End Sub

---------------------------------------
This gives me a error of:
Class does not support Automation or does not support expected interface

any ideas of how to fix that?

thanks in advance

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default emailing a sheet

Hi Choice

Only working if you use Outlook and it is your default mail program
Do you use that ?


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



"choice" wrote in message ...
Sub Send_Range()

' Select the range of cells on the active worksheet.
ActiveSheet.Range("f2:g7").Select

' Show the envelope on the ActiveWorkbook.
ActiveWorkbook.EnvelopeVisible = True

' Set the optional introduction field thats adds
' some header text to the email body. It also sets
' the To and Subject lines. Finally the message
' is sent.
With ActiveSheet.MailEnvelope
.Introduction = "TESTER"
.Item.To = "
.Item.Subject = "test"
.Item.Send
End With
End Sub

---------------------------------------
This gives me a error of:
Class does not support Automation or does not support expected interface

any ideas of how to fix that?

thanks in advance



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
emailing active sheet with macro BIGBOY1974AA Excel Worksheet Functions 2 July 18th 08 08:23 AM
Emailing one sheet Carla Bradley Excel Discussion (Misc queries) 3 June 17th 05 09:42 PM
Emailing a sheet to someone that doesnt have excel Dave Cousineau ( Sahuagin ) Excel Programming 2 February 21st 05 03:35 PM
Emailing Excel Sheet As Attachment Garcia Pop-Up Excel Programming 4 December 11th 03 10:51 PM
Automaticaly Emailing A S/Sheet ?? Neil[_15_] Excel Programming 2 October 28th 03 08:41 PM


All times are GMT +1. The time now is 12:50 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"