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: