Hi,

I have been trying to use this example to modify the security settings in ms excel as follows:
Call CreateKeys(HKEY_CURRENT_USER, "SOFTWARE\Microsoft\Office\11.0\Excel\Security", "Level", REG_DWORD, "4")

Although I can write to REG_SZ, REG_DWORD does not work. I assume this is some sort of lock to prevent VBA from altering the security settings to protect against malicious code. Is this correct?