Created macro closes files at end of macro on my worksstation, but not at another workstation

I have created a macro to automate different versions of a product for a customer, the macro works fine, except for the end. The macro should open several files, change the dimensions and make a 'save as' and close all files in the end.

It work on my workstation, but when I run the macro on the customers worksstation, the files aren't closed at the end. I use a 'swApp.CloseDoc' to close the file.

Could anyone help me with this?

SolidworksApi macros