Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
13
Task/Loops-Foreach/VBA/loops-foreach.vba
Normal file
13
Task/Loops-Foreach/VBA/loops-foreach.vba
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
Public Sub LoopsForeach()
|
||||
Dim FruitArray() As Variant
|
||||
Dim Fruit As Variant
|
||||
FruitArray = [{"Apple","Banana","Strawberry"}]
|
||||
Dim FruitBasket As Collection
|
||||
Set FruitBasket = New Collection
|
||||
For Each Fruit In FruitArray
|
||||
FruitBasket.Add Fruit
|
||||
Next Fruit
|
||||
For Each Fruit In FruitBasket
|
||||
Debug.Print Fruit
|
||||
Next Fruit
|
||||
End Sub
|
||||
Loading…
Add table
Add a link
Reference in a new issue