Answers for "for each vba"

VBA
2

vb for each

Dim lst As New List(Of String) _
    From {"abc", "def", "ghi"}

' Iterate through the list.
For Each item As String In lst
    Debug.Write(item & " ")
Next
Debug.WriteLine("")
Posted by: Guest on August-10-2020
0

Foreach vba

Dim MyObject As Variant, MyCollection As Variant
MyCollection = Array("Hello", "World")
For Each MyObject In MyCollection
	Debug.Print(MyObject)
Next
Posted by: Guest on September-14-2021

Code answers related to "VBA"

Browse Popular Code Answers by Language