kelly mort
Well-known Member
- Joined
- Apr 10, 2017
- Messages
- 2,169
- Office Version
- 2016
- Platform
- Windows
Hi again,
I got something I think is a big problem for me but I don't know what you think:
I have a loop like
The loop is pointing to numbers in column B. However, all the numbers may not be present. For example, 2 or 54 etc, may not be available in the list. And in this case, the vlookup I am using will return that N/A .
If that alone, I would have a way to clear that. But I am also printing with the same loop as well.
Still I can set a condition to skip the print when that error shows up.
But the issue is, from that 1 To 100 used for the loop counter, there may be only two numbers found in the column B.
And in this case, running all the 100 counters seem to me as a waste of time and memory.
So it occurred to me that if I am able to load that column B to an array and then use the array index for the loop counter, then I can be able to take care of all the concerns I have raised above.
I hope someone has the cure for this.
Thanks
I got something I think is a big problem for me but I don't know what you think:
I have a loop like
Code:
For i = 1 To 100
.........
Next
The loop is pointing to numbers in column B. However, all the numbers may not be present. For example, 2 or 54 etc, may not be available in the list. And in this case, the vlookup I am using will return that N/A .
If that alone, I would have a way to clear that. But I am also printing with the same loop as well.
Still I can set a condition to skip the print when that error shows up.
But the issue is, from that 1 To 100 used for the loop counter, there may be only two numbers found in the column B.
And in this case, running all the 100 counters seem to me as a waste of time and memory.
So it occurred to me that if I am able to load that column B to an array and then use the array index for the loop counter, then I can be able to take care of all the concerns I have raised above.
I hope someone has the cure for this.
Thanks