A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

MailEnvelope not working in Excel 2007



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 8th 09, 10:02 PM posted to microsoft.public.outlook.program_vba
lowspark
external usenet poster
 
Posts: 2
Default MailEnvelope not working in Excel 2007

Here is a simplified version of an email macro which works in 2003 but
not in 2007.

Sub SendEmail()

Sheets("Email").Select
Range("A1:L32").Select

ActiveWorkbook.EnvelopeVisible = True
With Application.ActiveSheet.MailEnvelope
With .Item
.Recipients.Add "
.DeleteAfterSubmit = True
.Send
End With
End With
End Sub

If I set my internet options - Programs - Email to Microsoft Office
Outlook, it fails on this line:
ActiveWorkbook.EnvelopeVisible = True
with this error:
Run-time error '1004': Method 'EnvelopeVisible' of object '_Workbook'
failed

If I set my internet options - Programs - Email to Outlook Express, it
fails on this line:
With Application.ActiveSheet.MailEnvelope
with this error:
Run-time error '430': Class does not support Automation or does not
support expected interface

I have Excel 2007 installed and Outlook 2003 (not 2007) -- not sure if
that makes a difference.

I have scoured the web but cannot find any documentation of others
with this exact problem.

Any help or ideas will be greatly appreciated! thanks!!
  #2  
Old July 8th 09, 11:51 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP][_3_]
external usenet poster
 
Posts: 465
Default MailEnvelope not working in Excel 2007

I have Excel 2007 installed and Outlook 2003 (not 2007) -- not sure if
that makes a difference.


Yes, it makes a difference. That feature requires matching versions of Excel
and Outlook. It doesn't work with Outlook Express at all.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"lowspark" wrote in message
...
Here is a simplified version of an email macro which works in 2003 but
not in 2007.

Sub SendEmail()

Sheets("Email").Select
Range("A1:L32").Select

ActiveWorkbook.EnvelopeVisible = True
With Application.ActiveSheet.MailEnvelope
With .Item
.Recipients.Add "
.DeleteAfterSubmit = True
.Send
End With
End With
End Sub

If I set my internet options - Programs - Email to Microsoft Office
Outlook, it fails on this line:
ActiveWorkbook.EnvelopeVisible = True
with this error:
Run-time error '1004': Method 'EnvelopeVisible' of object '_Workbook'
failed

If I set my internet options - Programs - Email to Outlook Express, it
fails on this line:
With Application.ActiveSheet.MailEnvelope
with this error:
Run-time error '430': Class does not support Automation or does not
support expected interface

I have Excel 2007 installed and Outlook 2003 (not 2007) -- not sure if
that makes a difference.



  #3  
Old July 10th 09, 08:08 PM posted to microsoft.public.outlook.program_vba
lowspark
external usenet poster
 
Posts: 2
Default MailEnvelope not working in Excel 2007

On Jul 8, 5:51*pm, "Sue Mosher [MVP]" wrote:
I have Excel 2007 installed and Outlook 2003 (not 2007) -- not sure if
that makes a difference.


Yes, it makes a difference. That feature requires matching versions of Excel
and Outlook. It doesn't work with Outlook Express at all.

--
Sue Mosher, Outlook MVP
* *Author of Microsoft Outlook 2007 Programming:
* * *Jumpstart for Power Users and Administrators
* *http://www.outlookcode.com/article.aspx?id=54


Well, that did it! Thank you very much, that was exactly the answer I
was looking for!
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting MailEnvelope of a Word document does not work Jeroen Outlook and VBA 2 July 1st 09 02:10 PM
Set itm = doc.MailEnvelope.Item [email protected] Outlook - General Queries 1 May 7th 07 08:21 PM
Set itm = doc.MailEnvelope.Item [email protected] Outlook and VBA 3 May 7th 07 07:33 PM
Edit MailEnvelope.Item Before .Send Jeff C Outlook and VBA 11 June 21st 06 03:06 PM
Using MailEnvelope Ridge Kennedy Outlook and VBA 4 April 13th 06 09:53 PM


All times are GMT +1. The time now is 03:36 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.