ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   passwords incompatible with macros in 2007? (https://www.excelbanter.com/excel-programming/377659-passwords-incompatible-macros-2007-a.html)

Jim

passwords incompatible with macros in 2007?
 
Just got RTM excel 2007.
Looks like there is no way to enable macros on a xslm file if it has a
password on it.

To recreate:
Create a new workbook with a simple macro. Save it with a password.
Open it. No way to run macros. (regardless of trust settings).
Save it without a password. Open it. macros work as expected.



Jim Rech

passwords incompatible with macros in 2007?
 
Security everywhere... I feel so safe.<g There is a registry entry to
turn this off though.

Create this key and set its value to 1:

ExcelBypassEncryptedMacroScan

under:

HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\E xcel\Security

--
Jim
"Jim" wrote in message
...
Just got RTM excel 2007.
Looks like there is no way to enable macros on a xslm file if it has a
password on it.

To recreate:
Create a new workbook with a simple macro. Save it with a password.
Open it. No way to run macros. (regardless of trust settings).
Save it without a password. Open it. macros work as expected.





Jim

passwords incompatible with macros in 2007?
 
OK,
In order to get this to work I had to:
Right clicking in "Security" and choosing new DWORD value
ExcelBypassEncryptedMacroScan
(decimal value 1)

It it's in trusted directory it will just run the macros. If it's in a
non-trusted directory, it gives me the option.

Thanks!


jgascon

passwords incompatible with macros in 2007?
 
Jim and Jim:
Thanks. Your posts were very helpful. However, I do not understand the logic
of making it impossible tu run macros in password-protected workbooks unless
a magic (undocumented) key is added to the registry. I see that I am not the
only one who ran into this problem.

"Jim Rech" wrote:

Security everywhere... I feel so safe.<g There is a registry entry to
turn this off though.

Create this key and set its value to 1:

ExcelBypassEncryptedMacroScan

under:

HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\E xcel\Security

--
Jim
"Jim" wrote in message
...
Just got RTM excel 2007.
Looks like there is no way to enable macros on a xslm file if it has a
password on it.

To recreate:
Create a new workbook with a simple macro. Save it with a password.
Open it. No way to run macros. (regardless of trust settings).
Save it without a password. Open it. macros work as expected.







All times are GMT +1. The time now is 07:14 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com