11-10-2007, 04:32 PM
I am creating a program to Automate the install and configure process for some other software. If my macro encounters an error, I have it open notepad and log an error message then end the macro. If it is successful, I have it again open notepad and log a successful message. Doing this every few lines takes up ALOT of space in the code. My question is: Is there a way to create a Failed Log and a Successful Log only once? Then wherever I want to add one, just add something to point at the correct Log? Or is there a better way of doing this?
Thanks
Thanks