05-13-2007, 08:17 PM
Yes, sometimes it is better to generate code at run time. I also used this method in some macros, particularly to generate code that runs when you click Test in Find Accessible Object dialog and other similar dialogs. I store the code directly in a macro instead of using file.