Three code-related things: First, avoid try/catch so much... you should handle unhandled cases better (such as no object selected, etc.), using an if/then, and print or messageBox the error. Second, and this is pretty minor- if you're not using the functions outside of the rollout, put them inside of the rollout. This will…