Open Excel in directory

I am working with the Excel Scope Activity using the path of a file from Downloads folder and when I moved it to Desktop I realized that my code instead of stopping with an error (not finding the file in the path I wrote) it creates a new blank file in Downloads with the same name.

How can I avoid this? I need to work with that file of course and I want to use try and catch if the file is not in Downloads… not create a new one

Uncheck CreateNewFile in property section of excel application scope


So simple and I couldn’t see it! Thanks!!!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.