DELETESETTING |
DELETESETTING(appname [,section] [,key]) |
Removes (or deletes) a key or section from the registry. |
appname | The name of the application or project (String). |
section | (Optional) The name of the section (String). |
key | (Optional) The name of the key (String). |
REMARKS |
* This function can be used to remove 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. * A run-time error (Invalid procedure call or argument) will occur if you try to delete a setting that does not exist. * For more information, refer to the Macros > Registry page. * The equivalent .NET statement is Microsoft.VisualBasic.Interaction.DeleteSetting * For the Microsoft documentation refer to learn.microsoft.com |
Call DeleteSetting("MyApp","MySection","MyKey")
Call DeleteSetting("MyApp","MySection")
Call DeleteSetting("MyApp")
Call DeleteSetting("My Amazing Add-in","User Settings","Full Name")
Call DeleteSetting("My Amazing Add-in","User Settings")
© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited Top