Change Registry DWORD Setting through VBA

C

CarolineJ

I need to change a registry setting. Have tried using PrivateProfileString
but this just seems to add a String Value but I need to change the DWORD
value. Is there a way to do this through VBA in Word (or through vbscript on
an HTM page - I seem to be able to do even less here)?

Many thanks

Caroline
 
J

Jonathan West

CarolineJ said:
I need to change a registry setting. Have tried using PrivateProfileString
but this just seems to add a String Value but I need to change the DWORD
value. Is there a way to do this through VBA in Word (or through vbscript
on
an HTM page - I seem to be able to do even less here)?


Karl Peterson has a registry class that you can use to make changes to any
kind of key or value in the registry

Take a look here
http://vb.mvps.org/samples/project.asp?id=RegSettings

The class is written in VB6, but should work perfectly happily when imported
into a VBA project
 

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