About 10,300,000 results
Open links in new tab
  1. VBA Add New Value to the Array - Excel Champs

    To add a new value to an existing array you need to have a dynamic array to redefine the elements of it, and when you do this, you need to preserve the values for the old elements. …

  2. adding items to an array VBA excel - Stack Overflow

    Jul 29, 2015 · Try below, the redim will resize an array. ubound() finds the top end of an array so ubound()+1 will add one extra size to the array. The preserve keyword will preserve any …

  3. Using arrays (VBA) | Microsoft Learn

    You can declare an array to work with a set of values of the same data type. An array is a single variable with many compartments to store values, while a typical variable has only one storage …

  4. VBA – Add Items to Array - Tachytelic.net

    Sep 4, 2019 · VBA does not allow you to append items to an array. The standard method to work around this is to re-dimension to array to the required size and then add the required items. …

  5. VBA Arrays - Automate Excel

    Mar 20, 2024 · In VBA, an Array is a single variable that can hold multiple values. Think of an array like a range of cells: each cell can store a value. Arrays can be one-dimensional (think of …

  6. Adding an element to the end of an array - Super User

    Jan 11, 2018 · I would like to add a value to the end of a VBA array. How can I do this? I was not able to find a simple example online. Here's some pseudocode showing what I would like to be …

  7. VBA Arrays - Items - Add / Remove - BetterSolutions.com

    May 2, 2025 · The only way to remove an item from an array is to construct a new array. Constructing a new array every time though is not very efficient. The following function can be …

  8. Excel VBA Array - The Complete Guide - Excel Macro Mastery

    May 27, 2024 · What is the VBA Array and Why do You Need It? A VBA array is a type of variable. It is used to store lists of data of the same type. An example would be storing a list of …

  9. Using Excel VBA to Populate an Array with Cell Values – 4

    Aug 11, 2024 · Go to the Developer tab >> select Visual Basic. In the Insert tab >> select Module. Enter the Code below in Module1. Dim myary As Variant. myary = Range("c5:c11").Value. …

  10. adding values to variable array VBA - Stack Overflow

    If my loop finds a customer called "greg" or "henry" I want to add his "dollar amount" to an array of an unknown size. Can someone please help me?

  11. Some results have been removed
Refresh