GetAllSettings function

Category: File / I-O & Environment

Summary

Returns a two-dimensional array containing all key settings saved in the Windows Registry under a specified app and section.

Syntax

GetAllSettings(appname, section) The GetAllSettings function syntax has these named arguments:
Part
Description
appnameRequired. String expression containing the name of the application or project whose key settings are requested. On the Macintosh, this is the filename of the initialization file in the Preferences folder in the System folder.
sectionRequired. String expression containing the name of the section whose key settings are requested. GetAllSettings returns a Variant whose contents is a two-dimensional array of strings containing all the key settings in the specified section and their corresponding values.

Example

Remarks
GetAllSettings returns an uninitialized Variant if either appname or section does not exist.

Microsoft Support Page

https://learn.microsoft.com/en-us/office/vba/language/reference/user-interface-help/getallsettings-function

Back to Functions