Outlook Developer Home
Outlook Programmer's Library
Outlook Technologies
Outlook Forms
Other Technologies



To clear the Links collection in an Outlook item

In writing about the Links property in Outlook items, I learned from an alert reader that Outlook provides no way to remove a link from a "sticky note" item once you create it. The code below does the job, clearing the Links collection.  

To try this code, paste it into a module in VBA in Outlook 2000 or later. Then, open the item whose links you want to remove and run the code (you can press Alt+F8 to get the list of available macros).

Code Sample

Back to Top


This code demonstrates the proper way to remove items from a collection using a Do loop, rather than a For Each loop. If you use Remove in a For Each loop, you will remove only every other item. Back to Top

More Information

2002-7 TurtleFlock, LLC
All right reserved.
About OutlookCode.com

Send comments to webmaster@outlookcode.com

Designed and Implemented by TerraLink USA 

FrontPage Integration
by RobsonDesignWorks

get Sue's code | forums | share your own code | registration