vba set registry value code example
Example 1: vba get registry value
Dim MySettings As Variant
SaveSetting "MyApp","Startup", "Top", 75
SaveSetting "MyApp","Startup", "Left", 50
Debug.Print GetSetting(appname := "MyApp", section := "Startup", _
key := "Left", default := "25")
DeleteSetting "MyApp", "Startup"
Example 2: vba registry settings
SaveSetting appname := "MyApp", section := "Startup", _
key := "Top", setting := 75
SaveSetting "MyApp", "Startup", "Left", 50
DeleteSetting "MyApp", "Startup"