How to pass an array (Range.Value) to a native .NET type without looping?
问题 What I am trying to do is populate an ArrayList using .AddRange() method in VBA using late binding on native C# ArrayList , but I can't figure out how to pass an object other than another ArrayList to it as argument... anything else I have tried so far fails... So basically what I am doing now (Note: list is C#'s ArrayList via mscorlib.dll) Dim list as Object Set list = CreateObject("System.Collections.ArrayList") Dim i As Long For i = 1 To 5 list.Add Range("A" & i).Value2 Next But this is