Hi there,
I have a problem with my code and I have no idea why the code does not reset.
The MainMenu of the code is as follows:
Basically the problem is this:
When I declare RefNo = reff(manual input a number from 1 to 8), i.e. running the entire macro one at a time, I get my desired result. However when I use try to loop the entire macro (using the For Next loop) to work on 9 different types of data, the code returns the correct data for the first 2 and then doesn't run properly for the rest. I know the fault does not lie with the data because when I manually key in the number, ie declare RefNo = reff(manual input number from 1 to 8), I am able to get my result.
Can someone explain why it is such? In short, my problem is that the code is able to run for one example at a time, but not all together.
Many thanks in advance!
Bookmarks