that's no challenge, its more like you wanted to be taught step by step how it works, and I bet you know how basing from the number of post that you have.
1. the hta code is set into a variable
2. the variable then write it as a file.hta
3. macro runs the created file.hta
4. while the macro loops until file.hta window disappears, you key in data to the file.hta window, if you close this window, it will output a file.mex file
5. macro runs the file.mex file getting all the values
6. macro then displays the value into a window
what you really need to know is vbscript which isn't hard enough.