changing registry values

I need to add a key to the Microsoft Excel directory in the registry.  Everything that I have tried so far just places the new key under the VB and VBA program information.  

What I ultimately need to do is place this value under the startup key in the Excel folder in the registry.  Any feedback or suggestions would be welcome but please don't be too fast to answer unless you absolutely have the answer.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Registry and INI file module functions:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
To do this you got to use API function, you can checkout the sample applications at
tkuppinenAuthor Commented:
VB Guru,

Eirck37's comment was first and led to better information.  Thank you anyway though.


Thanks for the help this code does the trick just fine.
tkuppinenAuthor Commented:
I am accepting Erick37's comment aasd an answer.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.