ProfileString Property
Applies To
System object.
Description
Returns or sets a setting in the Windows registry under the following key: HKEY_CURRENT_USER\Software\Microsoft\Office\8.0\Word. On the Macintosh, this property returns or sets a setting in the Word Settings (97) file. Read/write String.
Syntax
expression.ProfileString(Section, Key)
expression Required. An expression that returns a System object.
Section Required String. A key below the "HKEY_CURRENT_USER\Software
\Microsoft\Office\8.0\Word" path in the Windows registry.
Key Required String. The value in the key specified by Section (for example, "BackgroundPrint" in the Options key).
See Also
PrivateProfileString property.
Example
This example retrieves and displays the startup path stored in the Windows registry.
MsgBox System.ProfileString("Options", "Startup-Path")
This example sets and returns a setting in the Windows registry (the Settings key is added below HKEY_CURRENT_USER\Software\Microsoft\Office\8.0\Word
\Settings).
System.ProfileString("Settings", "Test") = "foo"
MsgBox System.ProfileString("Settings", "Test")