Macro Scheduler 15

The Script So Far


 

Note the variable 'filename' declared at the top.

 

After running the script you should see a few flashes as the windows and dialogs appear and disappear faster than you can type and the end result should look something like:

 

Note the new window title ? "samplefile.txt ? Notepad" ? proof that the file has been saved.

 

 

If you close Notepad and run the script again the same thing will happen. No errors, because the filename has been deleted and there was no clash.