About 506,000 results
Open links in new tab
  1. excel - Creating an Array from a Range in VBA - Stack Overflow

    Jun 8, 2016 · This function returns an array regardless of the size of the range. Ranges will return an array unless the range is only 1 cell and then it returns a single value instead.

  2. Return array from function in VBA - Stack Overflow

    I would like to write a function to return an array of integers so I can index them, but I am not aware of the syntax for VBA. Here is the pseudo code: function getStats() as integer dim return...

  3. VBA Passing an array to a function and back - Stack Overflow

    Here is why: The code that calls the function already knows that it wants to use Title and Checked, so nothing is lost when it gets an array of ContentControl instances instead of a …

  4. How to pass an array to a function in VBA? - Stack Overflow

    Apr 17, 2017 · 54 This seems unnecessary since the Array() function documentation clearly states that the function returns a Variant type, but VBA is a strange place. If you declare an …

  5. Check if a value is in an array or not with Excel VBA

    I did a test with an array of size 2000. The worst case scenario for looping through the array would be looking for the last item (at index 2000). After 5000 calls to both the function and looping, …

  6. sorting - VBA array sort function? - Stack Overflow

    I'm looking for a decent sort implementation for arrays in VBA. A Quicksort would be preferred. Or any other sort algorithm other than bubble or merge would suffice. Please note that this is to work

  7. excel - How to add dynamic array formula - Stack Overflow

    I'm also applying the UNIQUE function to remove any multiple blank ("") results. This works perfectly if I manually type the formula into Excel, however in using VBA to add the formula, …

  8. Passing an Array or Range through a function in VBA

    May 5, 2017 · 2 So I want to make a basic function that takes an average of values that I highlight in Excel. I am well aware there is already a built-in function in Excel for this but I am trying to …

  9. excel - Remove duplicates from array using VBA - Stack Overflow

    I've edited my answer slightly to reflect the array request. Inside the question it gets ambiguous and the user states the desire to do what clicking the Remove Duplicates button does but in …

  10. VBA Pass Array By Reference and Modify Contents

    VBA question. I'm using it to make Solidworks macros, but that's not important. Can someone explain the syntax to pass an array (1-Dimensional of type Double, with length of three) to a …