Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Sub RemoveNegativesAndReverse()
- Dim arrNum As Variant
- arrNum = Split("10 -5 7 9 -33 50", " ")
- Dim numList As New ArrayList
- For Each el In arrNum
- If el >= 0 Then
- numList.Add (el)
- End If
- Next
- For i = numList.count - 1 To 0 Step -1
- Debug.Print numList(i)
- Next
- End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement