Compartilhar via


System.ProfileString Property

Word Developer Reference

Returns or sets a value for an entry in the Windows registry under the following subkey: HKEY_CURRENT_USER\Software\Microsoft\Office\version\Word. Read/write String.

Syntax

expression.ProfileString(Section, Key)

expression   An expression that returns a System object.

Example

This example retrieves and displays the startup path stored in the Windows registry.

Visual Basic for Applications
  MsgBox System.ProfileString("Options", "STARTUP-PATH")

This example sets and returns the value for an entry in the Windows registry (the SubkeyName subkey is added below HKEY_CURRENT_USER\Software\Microsoft\Office\version\Word).

Visual Basic for Applications
  System.ProfileString("SubkeyName", "EntryName") = "Value"
MsgBox System.ProfileString("SubkeyName", "EntryName")

See Also