Items collection is 1, not 0 based:
For I = oItems.Count To 1 Step -1
-- Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool - "John" <info[ at ]nospam.infovis.co.uk> wrote in message news:OLLxYO0ZJHA.2620[ at ]TK2MSFTNGP02.phx.gbl...
[Quoted Text] > Hi > > I am deleting folder as below; > > For I = oItems.Count - 1 To 0 Step -1 > oItems(I).delete() > End If > > The problem is one element is always left in Draft folder from deletion. > What am I doing wrong? > > Thanks > > Regards >
|