Jump to content

Recommended Posts

Posted (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 by keltharak
Posted

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... ?

Posted (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:huh2:  It explicitly addresses your question.

Edited by TheXman

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

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...