View Full Version : [SOLVED:] Count item in array
How to count items in array
Arr1= array("aa", "bb", "cc")
Reason why i need this is using many For .... next methods.
example: For i=0 to X 'x is number how many items is in array
Bob Phillips
09-26-2005, 05:39 AM
How to count items in array
Arr1= array("aa", "bb", "cc")
Reason why i need this is using many For .... next methods.
example: For i=0 to X 'x is number how many items is in array
For i = Lbound(Arr1) To UBound(Arr1)
How to count items in array
Arr1= array("aa", "bb", "cc")
Reason why i need this is using many For .... next methods.
example: For i=0 to X 'x is number how many items is in array
Assuming you want to count the # of times any element occurs in the array, you might also see this KB (http://vbaexpress.com/kb/getarticle.php?kb_id=708) It will probably do what you want and has pretty broad utility
yes i mean count arry items but UBound do what I mean the code to do :rotlaugh:
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.