Registry entries

Posted on 2003-11-17
Last Modified: 2010-05-01
Could someone please explain how to read and write to the registry? I would like to be able to save various settings in the registry. I am creating a program that will need to be run on both win2000 and winXP systems. I have read the msdn entries and tried using the getsetting() and savesetting() functions, but cant find where they actually get saved to!

many thanks,
Question by:Ice123
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 52

Expert Comment

by:Ryan Chong
ID: 9762959
Basically, SaveSetting saved the values into registry: HKEY_CURRENT_USER\Software\VB and VBA Program Settings, to make it more flexible, you must using the existing Registry APIs. Take a look on the links below and try find useful examples

Hope this helps

Expert Comment

ID: 9762968
They are saved in "My Computer\HKEY_CURRENT_USER\Software\VB and VBA Program Settings".

When saving a setting, you enter the appname, which will be the folder the settings go into.
When useing getsetting you only have to fill in the appname and not the entire registry key
LVL 11

Accepted Solution

bmatumbura earned 50 total points
ID: 9763343
Also have a look at this Registry Access Class I posted at:
LVL 11

Expert Comment

ID: 9769605

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article ( for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question