MichaelCrawley Posted February 22 Share Posted February 22 (edited) So when I try to open an excel document in autoIT see's the excel file as two different files. One called Hourly and one called MEB. The space in the file name is the problem and if I could rename the file I would but these files are used by a lot of different groups. I have tried single and double quotes around "Hourly - CVB1.xlsm", 'Hourly - CVB1.xlsm' I am new to autoIT I only have a couple week of expeirence. Any help or pointing me to a resource would be helpful. //FAILS Func openExcel() Run("C:\Program Files (x86)\Microsoft Office\Office16\excel.exe \\fileserver\Groups\folder1\folder2\folder3\Hourly - CVB1.xlsm") WinWait('excel') EndFunc ;==>openExcel // WORKS - I wanted to test my function just to make sure and it Works Func openExcel() Run("C:\Program Files (x86)\Microsoft Office\Office16\excel.exe \\fileserver\Groups\folder\folder2\folder3\Hourly-MEB.xlsm") WinWait('excel') EndFunc ;==>openExcel Edited February 22 by MichaelCrawley clerification Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now