Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro to Write and delete value in registry
Dear All,
I need two macros which will run on workbook_open and workbook_beforeclose events. The first macro which will run on workbook open should search the windows registry at "HKEY_CURRENT_USER\Software\Microsoft\Office\Commo n" for a key called "security" and create a key called "Security" under the key "Common" and then it should add a "Dword" with value as "00000001". The second macro should undo the changes done by the first Macro i.e. It should delete the key and Dword created by the first Macro. Waiting for an urgent response... Thanks a lot in advance, -- Best Regards, Jitendra Kumar |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro to Write and delete value in registry
Hi Jitendra
Excel macros are simply good old VB6, so google VB6 registry for tons of solutions, like http://www.codeguru.com/vb/gen/vb_sy...le.php/c12067/ http://www.devx.com/vb2themax/Tip/19136 Keep in mind that altering security settings by code is considered really bad practice ;-) HTH. Best wishes Harald "Jitendra Kumar" wrote in message ... Dear All, I need two macros which will run on workbook_open and workbook_beforeclose events. The first macro which will run on workbook open should search the windows registry at "HKEY_CURRENT_USER\Software\Microsoft\Office\Commo n" for a key called "security" and create a key called "Security" under the key "Common" and then it should add a "Dword" with value as "00000001". The second macro should undo the changes done by the first Macro i.e. It should delete the key and Dword created by the first Macro. Waiting for an urgent response... Thanks a lot in advance, -- Best Regards, Jitendra Kumar |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
error 1406 setup cannot write to registry | Excel Discussion (Misc queries) | |||
Read Registry Keys (and possibly write) | Excel Programming | |||
VBA read/write registry | Excel Programming | |||
VBA read/write registry setting | Excel Programming | |||
VBA read/write registry setting | Excel Programming |