Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Darkforce_the_ilogic_guy
222 Views, 1 Reply

it is possible to check if an file is alway open ?

I have an code da get some data form the model , copy an templete Excel fil , and then open it 

 

My problem is that If i run the code without close the excel the Excel file have the same name as the part numer the code will fail.. that I want it to do is to check if the file is open , and if it is close it before copy the templete and open it again. 

 

is there a way to do this ?