Macro to Write and delete value in registry

J

Jitendra Kumar

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\Common" 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,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top