Hi guys!
I am interested in finding out the exact version that the loop is coming across in the array. In this case it is v1 for i, though v5 is also possible. For my particular task it is important that I only retrieve the newest one (i.e. v5). In some rare cases there is also no version specification at all.
I've already defined the beginning of the code, which checks whether there is a combination of "_v" and any integer:
To continue, I would like to firstly know which exact version I am dealing with, i.e. what integer is "#" actually? However, I have absolutely no clue of how to tackle that.
I would be very grateful if someone could give me a hint! For instance, whether you can specify the position of the # found with the "Like"-Operator?
Kind regards
Andreas
I am interested in finding out the exact version that the loop is coming across in the array. In this case it is v1 for i, though v5 is also possible. For my particular task it is important that I only retrieve the newest one (i.e. v5). In some rare cases there is also no version specification at all.
I've already defined the beginning of the code, which checks whether there is a combination of "_v" and any integer:
Rich (BB code):
Files(i) = "lol_v1.xlsx"
If Files(i) Like "*_v#.xlsx" Then
To continue, I would like to firstly know which exact version I am dealing with, i.e. what integer is "#" actually? However, I have absolutely no clue of how to tackle that.
I would be very grateful if someone could give me a hint! For instance, whether you can specify the position of the # found with the "Like"-Operator?
Kind regards
Andreas