I need to work on a excel file which is password protected file. I want to unprotect it first to read it, thus but I do not want to use Excel application scope password properties for that due to some constraints.
Either options which I am thinking of are VBscript(need one)/macro.
Thanks for this, I dont want to go with the activity approach as the file I am reading can be greater than 200 mb in such cases the activity will not work.
Hello @Shikhar_Tandon , even if you go by “either options” you still have to pass the credentials to access and process the file. so what is the harm in using the activity to simplify your automation?
Actually as the file is very large in cases, I am using UiPathTeam.XLExcel.Activities to access the file but this package does not give flexibility for password compatibility thus i need some Vb or anything by which I can access the file providing the password then will use UiPathTeam.XLExcel.Activities->Read range activity to read the file.
That works perfectly, only one thing as the file is unlocked post reading the file I want to again password protect it. Can you tweak in the above code and help on that as well.
Is there any way too to disable the popup(the Automatic update links popup) using interop as while protecting it is appearing in between and as the file is not owned by me i cannot request the owner to disable that.
Generally, we would ask you to Open another Topic for this Purpose.
However, I do think there needs to be some Excel Settings that need to Configured for the Popups to be Disabled, as I have experienced as well. But do Check by adding one line in the Invoke Code :
If it doesn’t work I would think the only way Might be to change the Excel Settings, maybe create a New Topic, so People Could Suggest Better Solutions :