I'm not the sharpest tack on this website, but I tried to help. I did download your macros, read them, and tried to understand your question. But after half an hour I still couldn't grasp the question. You might get better results if you followed this advice from the post called "How Do I Get The Best Answer in the Shortest Time?" in that message it says:
Clearly 95% of your macro has nothing to do with your problem (eg, the Button actions, the Pause actions, the insert text actions, the keystroke actions). Can you whittle the problem down to a couple of actions, like setting up a couple of test variables and then the Prompt action?