Save the settings in the registry.
SaveSetting (application name, section, key, setting)
SaveSetting "AffectedTerminals", "frmMain", "LastDir", szPathname
You can then get the settings using getetting the next time you launch the application so that you can use it.
GetSetting (application name, section, key [, default])
Dim szLastDir As String
szLastDir = GetSetting("AffectedTerminals", "frmMain", "LastDir", "P:\AttEngineering")
EDIT: arguments to appname and section.
The application name and section can be whatever you want. Something that describes the setup is best. In the above code, AffectedTerminals was the name of my application. Therefore, if you have a spreadsheet that processes invoices, you can name the application name "ITinvoices". A section is only a subsection (view of a subdirectory) for register entries.
HKEY_CURRENT_USER/ / VB VBA/ ////

SaveSetting
AppName
. , , .
. , , .
Key
. , .
. , , .
GetSetting
_
. , , .
. , , .
. , .
. , , . , , ("").