K
Ken Macksey
Hi
I don't know if anyone knows why, but it seems that Excel 97 runs for next
loops at about 25 times faster than Excel 2002.
In Dec 2002, I created a workbook using the code attributed originally to
Bob McCormick to break worksheet passwords and later modified by Norman
Harker to break workbook passwords that automatically looped through a
workbook and unprotected the workbook and all sheets with the same or
different passwords.
I incorperated a rough timer into it so it showed at the end approximately
how long it took to unprotect the wb and all sheets.
Using Excel 97, it consistently took about 16 seconds to remove passwords
for the wb and 3 worksheets that were all different passwords.
I upgraded to office XP 2002 and since then, using Excel 2002 and all else
being equal, it takes about 6 minutes and 50 seconds for the same workbook.
I downloaded J.E.McGimpsey's latest wb based on the same code and it takes
about the same time as well.
Anyone know why?
I decided to re-install just Excel 97 to do some testing, and lo and behold
with both excel 97 and excel 2002 installed on the same machine, running the
same files, it still only takes 16 seconds with Exel 97 and 6 minutes and 50
seconds with Excel 2002.
This code is just basically just a bunch of for next loops, so is it a
difference in the way they are run or is it something to do with the extra
protection features or options available with excel 2002?
KenM
I don't know if anyone knows why, but it seems that Excel 97 runs for next
loops at about 25 times faster than Excel 2002.
In Dec 2002, I created a workbook using the code attributed originally to
Bob McCormick to break worksheet passwords and later modified by Norman
Harker to break workbook passwords that automatically looped through a
workbook and unprotected the workbook and all sheets with the same or
different passwords.
I incorperated a rough timer into it so it showed at the end approximately
how long it took to unprotect the wb and all sheets.
Using Excel 97, it consistently took about 16 seconds to remove passwords
for the wb and 3 worksheets that were all different passwords.
I upgraded to office XP 2002 and since then, using Excel 2002 and all else
being equal, it takes about 6 minutes and 50 seconds for the same workbook.
I downloaded J.E.McGimpsey's latest wb based on the same code and it takes
about the same time as well.
Anyone know why?
I decided to re-install just Excel 97 to do some testing, and lo and behold
with both excel 97 and excel 2002 installed on the same machine, running the
same files, it still only takes 16 seconds with Exel 97 and 6 minutes and 50
seconds with Excel 2002.
This code is just basically just a bunch of for next loops, so is it a
difference in the way they are run or is it something to do with the extra
protection features or options available with excel 2002?
KenM