Move is a function, not a sub:
set myCopiedItem = myCopiedItem.Move(myNewFolder)
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Dan Johnson" <(E-Mail Removed)> wrote in message
news:a2ab7$43712410$d826dfe9$(E-Mail Removed)...
> We're using VB6 code similar to the following to copy an Outlook item to a
> folder:
>
> Set myItem = myolApp.CreateItem(olMailItem)
> Set myCopiedItem = myItem.Copy
> myCopiedItem.Move myNewFolder
>
> Is there any way to get the EntryID of the myCopiedItem object in
> myNewFolder without having to close myCopiedItem, then iterate through all
> of the items in myNewFolder until we find it? We've tried saving
> myCopiedItem (gives same EntryID before and after Save, but then later
> changes the EntryID after closing).
>
> Thanks for any feedback!
>
> Dan
>
>