User Tools

Site Tools


excel:macro_search_sequentially

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
excel:macro_search_sequentially [2016/07/11 08:21] – created peterexcel:macro_search_sequentially [2016/07/11 11:30] (current) – removed peter
Line 1: Line 1:
-====== Excel - Macro Search Sequentially ====== 
- 
-<code excel> 
-' Returns the number of vCrit found within the array oArrWithCrit. 
-Function ArrayCountIfSequential(oArrWithCrit As Variant, vCrit As Variant) 
-    Dim lRow As Long 
-     
-    For lRow = LBound(oArrWithCrit, 1) To UBound(oArrWithCrit, 1) 
-        If oArrWithCrit(lRow, 1) = vCrit Then 
-            ArrayCountIfSequential = ArrayCountIf + 1 
-        End If 
-    Next 
-End Function 
-</code> 
  
excel/macro_search_sequentially.1468225298.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki