I have a macro that I created on my desktop and it works perfectly well. I sent the file to another co-worker and it fails. The macro basically opens another excel sheet, copies a few things, pastes them in the spreadsheet where the macro resides and then closes the other opened document.
The code that closes the opened document that I am using is:
Windows(Filename).Close SaveChanges:=False
The macro fails on everyone elses computer but mine when it tries to close the opened document that it is copying from. If I eliminate the above code so that the document stays open, the macro works fine. Is there something that can correct this so that it can work on other computers? Thanks.
The code that closes the opened document that I am using is:
Windows(Filename).Close SaveChanges:=False
The macro fails on everyone elses computer but mine when it tries to close the opened document that it is copying from. If I eliminate the above code so that the document stays open, the macro works fine. Is there something that can correct this so that it can work on other computers? Thanks.