This isn't technically speaking VBA code but there have been times when I needed to quickly setup a couple registry keys and this is an easy way to do it. Follow these steps and then verify using Regedit.
NOTE: Be careful, changing registry settings can hurt!
NOTE: Changes below will overwrite existing values!
A. Create a text file with .reg extension
1. Create text file with entries similar to these:
NOTE: Observe the doubled up backslashes for paths
NOTE: For other value types, find a similar entry and
use the Export option on the File or Registry
menu item (one or the other depending on system)
to see what is created
2. Save text file with .reg extenstion (eg TestIt.Reg)
B. Backup the registry
C. Add your changes by running the .reg file create above
1. Open file browser and find your .reg text file above
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.