G
guilhaume
Hi all
I get several thousand of excel files which workbooks are locked
I already asked and get a solution on how unlock them with a V
program
but my problem is following:
there are two possible passwords for the excel files
I tryed to put the two unlocking lines one after the other:
bk.Unprotect Password:="toto"
bk.Unprotect Password:="tata"
but I get an error, as when I'm treating file which password is "tata"
an error message is displayed and the execution of the program stops
Is there an equivalent to the java try-catch ?
(i was thinking to do something like:
try{ bk.Unprotect Password:="toto"}
catch(Exception e){bk.Unprotect Password:="tata"}
)
by the way how can I know if an Excel file has it workbook protected?
Thanks for all
guilhaum
I get several thousand of excel files which workbooks are locked
I already asked and get a solution on how unlock them with a V
program
but my problem is following:
there are two possible passwords for the excel files
I tryed to put the two unlocking lines one after the other:
bk.Unprotect Password:="toto"
bk.Unprotect Password:="tata"
but I get an error, as when I'm treating file which password is "tata"
an error message is displayed and the execution of the program stops
Is there an equivalent to the java try-catch ?
(i was thinking to do something like:
try{ bk.Unprotect Password:="toto"}
catch(Exception e){bk.Unprotect Password:="tata"}
)
by the way how can I know if an Excel file has it workbook protected?
Thanks for all
guilhaum