Const HKEY_LOCAL_MACHINE = &H80000002' modify the name and path of the external HTML editor' configured in the Tools|Options|Advanced tab'' Changes apply immediately (no need to restart VB)'' Requires the SetRegistryValue functionSub SetExternalHTMLEditor(ByVal editorFileName As String) SetRegistryValue HKEY_LOCAL_MACHINE, _ "SoftwareMicrosoftVisual Basic6.0External Tools", "HTML Editor", _ editorFileNameEnd Sub