You should google “vb.net for loop” and read about how loops work. Here is an msdn article on it: https://msdn.microsoft.com/en-us/library/5z06z1kb.aspx
To apply the idea to your code – figure out which parts exactly should be repeating 45 times. Then wrap that in a for loop, something like the following:
For i as integer = 0 to 44
... part to repeat
Next i
Now – inside the loop – you will need to use the arrays you are declaring with the index from the loop.
For example when you are referencing paidstatus()
you are currently doing mpaidstatus(44)
– that will probably need to change to be paidstatus(i)
– so that you are referencing the current element of the array as you go through the loop 45 times.
So this answer is some hints for you. I’m sorry if you are looking for someone to post your completed code for you – we won’t really do that here. But at least you have some hints now. The rest is up to you.
2
solved Visual Basic – Ive written some code to loop a program 45 times and its not looping