View Single Post
  #9  
Old June 13th 06, 11:38 PM posted to microsoft.public.outlook.program_vba
Joanne
external usenet poster
 
Posts: 12
Default verify and delete mailitem

Thanks for the info Michael - the macro now works really sweet.
Didn't know about the "quickinfo" so feel like I got extra instruction
on this one. Will use it to make life easier next time I venture into
Outlook programming.
Joanne
Michael Bauer wrote:

Am Mon, 12 Jun 2006 13:08:44 GMT schrieb Joanne:

Joanne, that error tells you there´s a mismatch between both the data types
of the variable and the property you´re trying to pass to it. So please dim
Items As Outlook.Items instead of MailItem.

If you´re in doubt you can check it simply yourself: You set the variable to
the Items object in the Set Items = ... line. You can point the mouse over
..Items and right click "QuickInfo". That´ll display a tooltip which tells
you what kind of data type it is.

If you´re in the correct folder for sure then you could skip the
GetDefaultFolder function and use Application.ActiveExplorer.CurrentFolder
instead. But I´d suggest to use GetdefaultFolder, that makes your code more
independant.

You´re welcome.



Ads