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

Set itm = doc.MailEnvelope.Item



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 7th 07, 04:18 PM posted to microsoft.public.outlook.program_vba
[email protected]
external usenet poster
 
Posts: 6
Default Set itm = doc.MailEnvelope.Item

Hello Everyone,

I'm getting a runtime error that says: Run-Time error '-2147467259.
Method 'Mailenveloe' of object_document failed

I have read every posting about this and still can't seem to figure it
out. Whats wierd is that i've been using this macro for months and
all of a sudden this week it doesn't work! Any ideas on whats wrong?
The following is the code I'm using. Any help would be great as this
macro sends out about 100 emails. Also, outlook is my default
program.

Set itm = doc.MailEnvelope.Item
doc.MailEnvelope.Introduction = ActiveCell.Offset(0, 4).Value

THANKS!

  #2  
Old May 7th 07, 07:09 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Set itm = doc.MailEnvelope.Item

I haven't seen an instance of that failing. Can the user send a document manually with the File | Send To command?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

wrote in message ups.com...
Hello Everyone,

I'm getting a runtime error that says: Run-Time error '-2147467259.
Method 'Mailenveloe' of object_document failed

I have read every posting about this and still can't seem to figure it
out. Whats wierd is that i've been using this macro for months and
all of a sudden this week it doesn't work! Any ideas on whats wrong?
The following is the code I'm using. Any help would be great as this
macro sends out about 100 emails. Also, outlook is my default
program.

Set itm = doc.MailEnvelope.Item
doc.MailEnvelope.Introduction = ActiveCell.Offset(0, 4).Value

THANKS!

  #3  
Old May 7th 07, 07:23 PM posted to microsoft.public.outlook.program_vba
[email protected]
external usenet poster
 
Posts: 6
Default Set itm = doc.MailEnvelope.Item

Yea, I can send the document as per normal. The helpdesk upgraded
office but they don't really know what the update was. Is there an
object I am missing? I'm assuming thats what it is.

Also, there was a typo in my previous email. The error was:

Run-Time error '-2147467259.
Method 'Mailenvelope' of object_document failed


Thanks!!

Sue Mosher [MVP-Outlook] wrote:
I haven't seen an instance of that failing. Can the user send a document manually with the File | Send To command?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

wrote in message ups.com...
Hello Everyone,

I'm getting a runtime error that says: Run-Time error '-2147467259.
Method 'Mailenveloe' of object_document failed

I have read every posting about this and still can't seem to figure it
out. Whats wierd is that i've been using this macro for months and
all of a sudden this week it doesn't work! Any ideas on whats wrong?
The following is the code I'm using. Any help would be great as this
macro sends out about 100 emails. Also, outlook is my default
program.

Set itm = doc.MailEnvelope.Item
doc.MailEnvelope.Introduction = ActiveCell.Offset(0, 4).Value

THANKS!


  #4  
Old May 7th 07, 08:33 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Set itm = doc.MailEnvelope.Item

I don't think there's anything missing, but good debugging would suggest expanding the code to get each object separately:

Set env = doc.MailEnvelope
Set itm = env.Item
strCell = ActiveCell.Offset(0, 4).Value
env.Introduction = strCell

but I suspect that will make no difference. Running Help | Detect and Repair is also a good move.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

wrote in message oups.com...
Yea, I can send the document as per normal. The helpdesk upgraded
office but they don't really know what the update was. Is there an
object I am missing? I'm assuming thats what it is.

Also, there was a typo in my previous email. The error was:

Run-Time error '-2147467259.
Method 'Mailenvelope' of object_document failed


Thanks!!

Sue Mosher [MVP-Outlook] wrote:
I haven't seen an instance of that failing. Can the user send a document manually with the File | Send To command?



wrote in message ups.com...
Hello Everyone,

I'm getting a runtime error that says: Run-Time error '-2147467259.
Method 'Mailenveloe' of object_document failed

I have read every posting about this and still can't seem to figure it
out. Whats wierd is that i've been using this macro for months and
all of a sudden this week it doesn't work! Any ideas on whats wrong?
The following is the code I'm using. Any help would be great as this
macro sends out about 100 emails. Also, outlook is my default
program.

Set itm = doc.MailEnvelope.Item
doc.MailEnvelope.Introduction = ActiveCell.Offset(0, 4).Value

THANKS!


 




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
Set itm = doc.MailEnvelope.Item [email protected] Outlook - General Queries 1 May 7th 07 09:21 PM
Item.Save and Item.Close Script causes Outlook 2007 to Crash Rayyan Outlook - Using Forms 6 November 25th 06 04:14 AM
Changing Default Font with MailEnvelope Introduction jrisch Outlook and VBA 1 July 18th 06 08:30 PM
Edit MailEnvelope.Item Before .Send Jeff C Outlook and VBA 11 June 21st 06 04:06 PM
Using MailEnvelope Ridge Kennedy Outlook and VBA 4 April 13th 06 10:53 PM


All times are GMT +1. The time now is 11:39 AM.


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.