vba array contains

The solution for “vba array contains” can be found here. The following code will assist you in solving the problem.

Dim YourArray
YourArray = Array(“a”, “b”, “c”)
Debug.Print (UBound(Filter(YourArray, “c”)) > -1) ‘ True

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

Similar Posts