SAVESETTING |
SAVESETTING(appname, section [,key] [,setting]) |
Writes to the registry and saves a section or key in the registry. |
appname | The name of the application or project (String). |
section | The name of the section (String). |
key | (Optional) The name of the key to save (String). |
setting | (Optional) The value you want to save (Variant). |
REMARKS |
* This function can be used to read registry settings from the following registry path: HKEY_CURRENT_USER\Software\VB and VBA Program Settings\ * The "appname" is the subkey below the "VB and VBA Program Settings" key. * The "section" is the subkey of the key specified in the "appname" argument. * The "key" is the value of the key specified in the "section" argument. * For more information, refer to the Macros > Registry page. * The equivalent .NET statement is Microsoft.VisualBasic.Interaction.SaveSetting * For the Microsoft documentation refer to learn.microsoft.com |
Call SaveSetting("MyApp","MySection")
Call SaveSetting("MyApp","MySection","MyKey")
Call SaveSetting("MyApp","MySection","MyKey","MySettingValue")
Call SaveSetting("My Amazing Add-in","User Settings","Full Name","David Smith")
© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited Top