in reply to WIN32OLE program to compare

My initial thoughts kind of echo marto's. I'd suggest trying to test the script in Perl first before trying to create a stand alone executable. If the Perl script works and the executable does not, that probably means that some required modules were not packaged in the executable.

Ignoring that issue for the moment, I do so a potential problem in your code. When you open the workbooks (i.e. Excel files), I'd strongly suggest that you do error trapping. If there's errors in the syntax or if Excel can't find the file, the rest of your code becomes useless. Speaking from experience, you need to give Excel the full path to the file (in proper syntax) or Excel won't be able to find the file.