-
morning yujin
as usual you're right ... I didn't pay the right attention in studying the code you wrote ... in my opinion it didn't return the strings of expected numbers because I hadn't noticed that the instruction:
If cnt3> 0 And cnt3 <= vTotalMax Then
accepts range of values from 0 up to the value of the variable vTotalMax when instead only strings that satisfy only the value of vTotalMax must be accepted
I changed the line to
If cnt3 = vTotalMax Then
and now I get what I wanted !! :-)
;-) thanks again for your availability and patience
sincerely
RIC63
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules