VBA write to registry Win 7

I am not able to figure out how to write to the registry in VB or VBA.
I tried using the windows APi and WS.Script, both work in the XP environment, but not Win7

I just need to create a key and set the key value. MY current code I am using can read the key if I manually create it.

I have read a ton of stuff about the redirection in the registry in win7 but nothing translates to just wow to create a key in the windows 7 registry in Visual Basic.
A billion thanks for your help

This website is not affiliated, owned, or endorsed by Microsoft Corporation. It is a member of the Microsoft Partner Program.