Home > How-To Library > Arrays, Collections, Lists

How to remove items from a Collection object

**************************************************************** * © 2007 CodeItBetter http://www.codeitbetter.com * * This notice MUST stay intact for legal use * ****************************************************************
'You can remove items from a Collection object using the Remove method; 'this method accepts either a numeric index or a string key: ' Remove the Marketing Boss. EmployeeNames.Remove "Marketing" 'If the key doesn't exist, the Collection object raises an error 5-"Invalid 'procedure call or argument."

If you would like to submit your code here please us. Do not forget to mention your name. We are always thankful to each and everyone of you who submitted their code here.