Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

VBA Visual Basic for Applications (Microsoft) FAQ

Office / VBA General

How to add Registry entries from special text file by SBendBuckeye
Posted: 29 Oct 03

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:


      "Media Request Timeout Seconds"=dword:30

   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

   2. Double click .reg file name

   3. Answer the prompts

   4. Verify your entries using Regedit

Good Luck!

Back to VBA Visual Basic for Applications (Microsoft) FAQ Index
Back to VBA Visual Basic for Applications (Microsoft) Forum

My Archive

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close