Windows 2000 Professional, VBA, Outlook 2000 
Author Message
 Windows 2000 Professional, VBA, Outlook 2000

This only happens when running win2k and ol2000.  If using VBA I try to
delete every calendar item with a certain category name it will only delete
half of them.  I then run the code again and it deletes half again.  It
keeps doing this until they are all gone.  If I set up ol2000 to deliver to
a pst, it works fine.  It works fine either way on win9x or NT.  The
workaround right now is to set up a loop until they are all gone.  Does
anyone know what the deal is with Win2k pro and Exchange server?

Ryan



Wed, 23 Jul 2003 01:38:35 GMT  
 Windows 2000 Professional, VBA, Outlook 2000
You might want to post the code you're using in the
microsoft.public.outlook.program_vba newsgroup. You definitely can't use a
For Each ... Next loop, because the index changes every time. A While ...
Wend or Do ... Loop should work better.

--
Sue Mosher, Outlook MVP
Author of
     Teach Yourself Microsoft Outlook 2000 Programming in 24 Hours
     Microsoft Outlook 2000 E-mail and Fax Guide
Outlook and Exchange solutions at http://www.slipstick.com


Quote:
> This only happens when running win2k and ol2000.  If using VBA I try to
> delete every calendar item with a certain category name it will only
delete
> half of them.  I then run the code again and it deletes half again.  It
> keeps doing this until they are all gone.  If I set up ol2000 to deliver
to
> a pst, it works fine.  It works fine either way on win9x or NT.  The
> workaround right now is to set up a loop until they are all gone.  Does
> anyone know what the deal is with Win2k pro and Exchange server?

> Ryan



Wed, 23 Jul 2003 03:42:00 GMT  
 Windows 2000 Professional, VBA, Outlook 2000
it's  how it works in any program (like excel or word), unless you count
backwards.

it's because as you delete one, the internal count outlook is using to keep
track gets reset and the next one is renumbered to the one that outlook
thought it deleted, so it goes on the next.
Example:
5 items, 1,2,3,4,5. outlook deletes 1, renumbers the rest, so now you have
1,2,3,4.
it moves on to delete #2, which used to be 3 and skips the former #2.


Quote:
> This only happens when running win2k and ol2000.  If using VBA I try to
> delete every calendar item with a certain category name it will only
delete
> half of them.  I then run the code again and it deletes half again.  It
> keeps doing this until they are all gone.  If I set up ol2000 to deliver
to
> a pst, it works fine.  It works fine either way on win9x or NT.  The
> workaround right now is to set up a loop until they are all gone.  Does
> anyone know what the deal is with Win2k pro and Exchange server?

> Ryan



Wed, 23 Jul 2003 03:48:25 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Outlook 2002 and Outlook 2000 problem with SBS 2000 and Windows XP Professional

2. Outlook 2000, Windows 2000 Professional and remembering passwords

3. Does Outlook 2000 run on Microsoft Windows 2000 Professional

4. outlook files from outlook 2000/windows 98 to outlook 2000/windows xp home

5. Excel 2000 Does not Open in WIndows 2000 Professional

6. Windows 2000 Professional and Office 2000 Pro

7. Errors in Office 2000 Professional with Windows 2000 due to Norton AV

8. Windows 2000 Pro & Office 2000 Professional

9. Access 2000 and Windows 2000 Professional

10. Error 1931 Installing Office 2000 on Windows 2000 Professional


 
Powered by phpBB® Forum Software © phpBB Group