distiDoestoe
New Member
- Joined
- Dec 8, 2022
- Messages
- 5
- Office Version
- 365
- Platform
- Windows
Hi I'm looping trough an array and want to increase the integer every iteration.
In most languages I've used u could do something like
And it would add a 1 to the integer.
I couldn't find a good alternative for VBA, I only managed to find some old posts but I'm not sure if they were talking about using it in loops.
Hope some of y'all can help.
In most languages I've used u could do something like
Rich (BB code):
var = 1
foreach x as x {
action
i++
}
And it would add a 1 to the integer.
I couldn't find a good alternative for VBA, I only managed to find some old posts but I'm not sure if they were talking about using it in loops.
Hope some of y'all can help.