LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default 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
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
error 1406 setup cannot write to registry hp Excel Discussion (Misc queries) 0 June 16th 09 07:08 PM
Read Registry Keys (and possibly write) Mike Iacovou Excel Programming 4 April 8th 06 05:05 PM
VBA read/write registry nelson Excel Programming 1 August 22nd 03 12:48 PM
VBA read/write registry setting nelson Excel Programming 2 August 22nd 03 07:08 AM
VBA read/write registry setting nelson Excel Programming 0 August 22nd 03 05:41 AM


All times are GMT +1. The time now is 05:38 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"