> This is what I could come up with. It seems to work but If there is a faster > way I would like to hear about it. > > Set myFolder = myNameSpace.GetDefaultFolder( olFolderSentMail) > Set myItems = myFolder.Items > Set myRestrictItems = myItems.Restrict _ > ("[Subject] = 'Morning reports'") > myCount = 0 > For Each myItem In myRestrictItems > myCount = myCount + 1 > Next > For I = 1 To myCount > Set myItem = myFolder.Items("Morning reports") > myItem.Delete > Next I > "Bill Kearney" < wkear...@hotmail.com > wrote in message > news:#NoHL#DcAHA.2000@ tkmsftngp04... > > "Sue Mosher [MVP]" < sue...@slipstick.com > wrote in message > > news:u3HAg6CcAHA.1268@ tkmsftngp02... > > > > > In general, you can't delete in a For Each ... Next loop like this, > because > > > the index counter changes with each deletion. > > > > > > Are you trying to delete all items that meet certain criteria? If so, > > > consider using Restrict to return a collection of items. Groups View Thread Deleting MailItems from the Sent Items folder
Security Clan House
Nanowires Naturally Draw Liquid Upward in a Thin Film World's First Vertical Nanobeam to Enable Individualised Cancer Care
Pioneer dvd firmware upgrade page Copy dvd - dvd recorders, pioneer,dvd-r,dvd-rw and dvd RAM
Groups View Thread application.quit doesn't...
The Register Jedi Well, sort of...
Discussion what geek You might be a geek:
Discussion you geek "And Let there be light and pretty angels"
silicon.com - the who, what, when, where and why of ebusiness
TechNet My Bits
Computing Weekly Home Page
SFIA Foundation - SFIA Home
DLL Help Database
Support Knowledge Base
grid computing A form of networking .
Mozilla Firebird Themes
@stake Security News
Home - Microsoft UK
Home - BizTalk Server - Microsoft UK
Information Security News
TechNet - Microsoft UK
Institution of analysts and programmers website
Welcome to Envisioneering
British Computer Society
High-performance Linux clustering, Part 1: Clustering fundamentals Linux clustering is popular in many industries these days. With the advent of clustering technology and the growing acceptance of open source software, supercomputers can now be created for a fraction of the cost of traditional high-performance machines.
Palm Boulevard Software Hacks
by Emode: IQ and Personality Tests - Emode.com: The Classic IQ Test
The Internet Encyclopedia of Philosophy [IEP]
The TechRepublic CIO50 list celebrates the most influential and innovative tech chiefs, voted by their fellow CIOs Following proper etiquette is always important in formal settings like the corporate environment. Teach your users e-mail etiquette with these pointers
Electronic office etiquette The TechRepublic CIO50 list celebrates the most influential and innovative tech chiefs, voted by their fellow CIOs One of the most common complaints I hear from IT executives is that they’re no more efficient with electronic communication than they were with paper. Their argument is that there’s so much more being sent to them now than used to be sent on paper, they spend the majority of their time sifting through the bits looking for items relevant to their jobs.