VBA ISARRAY Function

HomeVBA Functions LIST (Category Wise)How to use the VBA ISARRAY Function (Syntax + Example)

What is VBA ISARRAY Function

The VBA ISARRAY function is listed under the information category of VBA functions. When you use it in a VBA code, it evaluates the supplied expression and returns TRUE if it is an array else FALSE. In simple words, it can check whether the value supplied is an array or not and returns TRUE or FALSE based on that.

how to use it

To use VBA's ISARRAY function you need to understand its syntax and arguments:

Syntax

IsArray(VarName)

Arguments

  • VarName: A variable you want to test to check if that’s an array or not.

Example to use ISARRAY Function in VBA

To practically understand how to use VBA ISARRAY function, you need to go through the below example where we have written a vba code by using it:

In the above code, we have used ISARRAY to check if mV is an array or not and as you can see we have already assigned an array to mV and when we run this it returns TRUE in the cell A1 as a result.

Related Functions

About the Author

puneet one point one

Puneet is using Excel since his college days. He helped thousands of people to understand the power of the spreadsheets and learn Microsoft Excel. You can find him online, tweeting about Excel, on a running track, or sometimes hiking up a mountain.