+ Reply to Thread
Results 1 to 3 of 3

DIM variant

  1. #1
    Forum Contributor
    Join Date
    05-04-2015
    Location
    Atlanta GA
    MS-Off Ver
    2010
    Posts
    106

    DIM variant

    What does the (20, 21) mean in

    "Dim stats(20, 21) As Variant" ?

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: DIM variant

    This means that it is expecting an Array of 20 x 21

    You can also just dim stats(20,21) too.

    The Variant only means that it is that, a variant any type of value

    Hope this helps
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,570

    Re: DIM variant

    First number is rows, second is columns of the array
    Ben Van Johnson

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] A variable defined as variant or variant array
    By billj in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-14-2016, 05:35 PM
  2. [SOLVED] How to use a variant of HLOOKUP?
    By GIS2013 in forum Excel General
    Replies: 3
    Last Post: 01-27-2015, 12:02 PM
  3. Does setting a variant acting as an array equal to "" accomplish same as "Erase" variant?
    By dmasters4919 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-21-2014, 05:59 PM
  4. [SOLVED] Getting index of variant
    By Schwizer in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-31-2014, 03:36 PM
  5. Using a variant in forumla... help please
    By KATIEexcel in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 05-16-2013, 03:48 AM
  6. Optional Variant
    By Desert Piranha in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-23-2006, 12:42 AM
  7. Variant
    By owl527 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-14-2005, 05:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1