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

How do I get the *NEW* EntryID after I delete a message from my In



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 22nd 07, 04:20 AM posted to microsoft.public.outlook.program_vba
Mike Petonic
external usenet poster
 
Posts: 2
Default How do I get the *NEW* EntryID after I delete a message from my In

Hi ... Glad that I found you folks. I am trying to do some automation with
MyLifeOrganized and Outlook.

Basically, I want to delete a message in my Inbox and get the new EntryID
(which changes when a message moves folders, of course) and save that new
EntryID in the clipboard.

I'm open to using the Redemption libraries or whatnot. Scouring this
community, I see a couple of references to the fact that MailItem.move() is a
function and returns the new EntryID, but not in my case. I get an undefined
error.

So, ignore my approach, is there another way to do it? Just netting it out,
I need to delete a message from my Inbox, and save the EntryID of the message
that is in the Deleted Folder.

Thanks!
-Mike

  #2  
Old August 22nd 07, 06:00 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default How do I get the *NEW* EntryID after I delete a message from my In



Move returns the moved item, not its EntryID.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Organize eMails:
http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6

Am Tue, 21 Aug 2007 20:20:06 -0700 schrieb Mike Petonic:

Hi ... Glad that I found you folks. I am trying to do some automation

with
MyLifeOrganized and Outlook.

Basically, I want to delete a message in my Inbox and get the new EntryID
(which changes when a message moves folders, of course) and save that new
EntryID in the clipboard.

I'm open to using the Redemption libraries or whatnot. Scouring this
community, I see a couple of references to the fact that MailItem.move()

is a
function and returns the new EntryID, but not in my case. I get an

undefined
error.

So, ignore my approach, is there another way to do it? Just netting it

out,
I need to delete a message from my Inbox, and save the EntryID of the

message
that is in the Deleted Folder.

Thanks!
-Mike

  #3  
Old August 22nd 07, 08:06 AM posted to microsoft.public.outlook.program_vba
Mike Petonic
external usenet poster
 
Posts: 2
Default How do I get the *NEW* EntryID after I delete a message from m

Thanks, Michael. You're right. But that wasn't the thing that I was doing
wrong. I was bumbling something else and finally got it to work. As a
result, I've spent 6 hours automating a part of my life that will hopefully
pay off dividends in the months ahead.

ObjectOrientedProgramming is what got me out of Programming :-)

-Mike


"Michael Bauer [MVP - Outlook]" wrote:



Move returns the moved item, not its EntryID.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Organize eMails:
http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6

Am Tue, 21 Aug 2007 20:20:06 -0700 schrieb Mike Petonic:

Hi ... Glad that I found you folks. I am trying to do some automation

with
MyLifeOrganized and Outlook.

Basically, I want to delete a message in my Inbox and get the new EntryID
(which changes when a message moves folders, of course) and save that new
EntryID in the clipboard.

I'm open to using the Redemption libraries or whatnot. Scouring this
community, I see a couple of references to the fact that MailItem.move()

is a
function and returns the new EntryID, but not in my case. I get an

undefined
error.

So, ignore my approach, is there another way to do it? Just netting it

out,
I need to delete a message from my Inbox, and save the EntryID of the

message
that is in the Deleted Folder.

Thanks!
-Mike


 




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
Problem in opening Outlook 2003 contact- Error Message " The properties dialog box could not be displayed. An invalid ENTRYID was pas. Jaweed Patel Outlook - Using Contacts 1 April 17th 07 01:31 PM
Outlook does not want to delete message Deon Outlook - General Queries 4 February 23rd 07 07:19 PM
blank contact lines,cannot delete,properties:invalid ENTRYID Troy Coleman Outlook - Using Contacts 2 June 28th 06 03:50 AM
Not confirm delete of message in OL 03 Bob S Outlook - General Queries 2 June 26th 06 09:21 PM
Message Delete Won't Work Alex W. Outlook Express 4 May 23rd 06 07:11 PM


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