Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing a registry key using a vba macro 1

Status
Not open for further replies.

Chrissirhc

Programmer
May 20, 2000
926
GB
Hello,

How can I change a registry key using an Excel VBA macro?

I wanted to put this code in auto_open so that the registry has correct information for the sheet to function.

Thanks in advance,

Chris
 
Ok one last question... Sorry...

Why is it that RegOpenKeyA returns a success code when I've deleted the key in question from the registry???

Furthermore, there is a phkResult...

 
Sorry to bump this... Does anyone know the answer?? What is the Author thinking?

Thanks,

Chris
 
Why is it that RegOpenKeyA returns a success code when I've deleted the key in question from the registry???

What situation is the author trying to catch?
 
Sorry, Chris,

I've been away for a few days. To be honest, I've never really tried to analyze this routine. When I first used it, it was so over my head, and I've never gone back to look at the guts of it again. I'll try and take a peak a bit later and see if I can shed any light...

Ken Puls, CMA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top