About 40,000 results
Open links in new tab
  1. ReDim statement (VBA) | Microsoft Learn

    Jul 6, 2022 · The ReDim statement is used to size or resize a dynamic array that has already been formally declared by using a Private, Public, or Dim statement with empty parentheses …

  2. VBA Dynamic Array (Redim & Redim Preserve) - Automate Excel

    Jul 19, 2021 · Redim vs. Redim Preserve. The ReDim statement resizes an array, clearing all existing values. The ReDim Preserve statement resizes an array, keeping (“preserving”) all …

  3. How to Redim 2D Array with VBA in Excel (3 Examples)

    Aug 1, 2024 · With the “ReDim” statement, the “ArrayIndex” variable is resized in this line to have 3 rows and 2 columns. With the help of this line, the array is set up as a two-dimensional array …

  4. VBA ReDim Statement - Explained with Examples

    Sep 28, 2023 · The ReDim statement is used to resize or re-dimension dynamic arrays, allowing for more efficient memory usage and better performance. It is a key tool in handling large sets …

  5. VBA ReDim - Explained, Preserve, Dynamic Arrays, Examples

    Guide to VBA ReDim. Here we explain its uses, how to create a dynamic array with Redim Preserve statement in Excel VBA with examples.

  6. How Do You Redim a Multidimensional Array?

    Jan 22, 2021 · I’m going to show you how to redim a multidimensional array later in this article, but first I’m going to give you a couple examples to make sure you understand all the concepts …

  7. VBA ReDim Statement - Sizing and Resizing VBA Arrays - Analyst …

    The Excel VBA ReDim statement initializes and resizes a dynamic VBA Array. Be sure to check the difference between Fixed VBA Arrays and Dynamic VBA Arrays. Optional. Keyword to be …

  8. VBA Arrays - ReDim Preserve - BetterSolutions.com

    Jun 16, 2025 · ReDim Preserve Preserving Values. ReDim will re-initialize the array and destroy any data in it unless you use the Preserve keyword. Preserve copies the elements from the old …

  9. Redim: Redim and UBound: The Dynamic Duo for Flexible Arrays …

    Apr 7, 2025 · dynamic arrays in vba are a powerful feature that allows developers to create flexible and efficient applications. Unlike static arrays, which have a fixed size determined at …

  10. ReDim Statement - Visual Basic | Microsoft Learn

    Sep 15, 2021 · You can use the ReDim statement to change the size of one or more dimensions of an array that has already been declared. If you have a large array and you no longer need …