ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Enable Macros Office 2007 (https://www.excelbanter.com/excel-programming/390574-enable-macros-office-2007-a.html)

Abdul[_2_]

Enable Macros Office 2007
 
How to enable macros in a protected workbook under Office 2007

I tried one of the bypass posted here but not getting it to work?!!

I am using Windows XP, Office 2007, Mcafee Virus Scan Enterpris 8.



Create this key and set its value to 1:

ExcelBypassEncryptedMacroScan

under:

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



Thanks,

Abdul


ShaneDevenshire

Enable Macros Office 2007
 
Hi,

If what you are asking is how can you run a macro which would change part of
a protected workbook, then you have at least two options:

1. turn off protection within the code and turn it back on in the code.
2. turn protection on in code and use the UserInterfaceOnly:=True option.

This option allows the macro to run against a protected workbook and to
modify it despite the fact that the sheet is protected. Look this up in help
if you need to understand more.
--
Cheers,
Shane Devenshire


"Abdul" wrote:

How to enable macros in a protected workbook under Office 2007

I tried one of the bypass posted here but not getting it to work?!!

I am using Windows XP, Office 2007, Mcafee Virus Scan Enterpris 8.



Create this key and set its value to 1:

ExcelBypassEncryptedMacroScan

under:

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



Thanks,

Abdul




All times are GMT +1. The time now is 04:01 AM.

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