Thread: redim
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
[email protected] james.billy@gmail.com is offline
external usenet poster
 
Posts: 69
Default redim

On Aug 5, 10:41*am, ranswrt wrote:
How do I count how many times a value is in a range to redim an array to that
size?
Thanks


You could use the Countif worksheet function... so you would enter it
in VBA as application.worksheetfunction.countif( The Range , The
Value).

Using this method the range would be the same the VBA range so
application.worksheetfunction.countif( Range("E:E") , 15 ) = how many
time 15 appears in column E.

Hope that helps,

James