keltharak Posted September 30, 2020 Posted September 30, 2020 (edited) Hello, I had some weird issue with the Excel UDF. I need to replace some value in an excel file. I set de $bVisible parameter of _Excel_Open and _Excel_BookOpen to False to mask windows during the process. Everything works in my script but after execution, if I try to re-open the file with Excel, the application start but the file is not opened. Of course it works perfectly if I open an other excel file (not modified with my script). It seems like this issue is related to the $bVisible parameter because if re-open the modified file with Autoit with $bVisible set to False, the file can be open agin with excel. It is like the file keep in memory the last visible state used in Autoit. Any idea ? Anyone as already faced this issue ? I use autoit v3.3.14.5. Thanks and regards Edited October 1, 2020 by keltharak
keltharak Posted September 30, 2020 Author Posted September 30, 2020 I find a solution, If I set _Excel_Open with $bVisible=False and _Excel_BookOpen with $bVisible=True it works. But if someone can explain me why... ?
TheXman Posted September 30, 2020 Posted September 30, 2020 (edited) 4 hours ago, keltharak said: I find a solution, If I set _Excel_Open with $bVisible=False and _Excel_BookOpen with $bVisible=True it works. But if someone can explain me why... ? Why don't you just read the help file entry for _Excel_BookOpen? It explicitly addresses your question. Edited September 30, 2020 by TheXman CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman
keltharak Posted October 1, 2020 Author Posted October 1, 2020 Well... I don't know... Sorry. Thank you, I feel like an idiot but you answered my question 😅
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now