Hi,
Bernie is correct. However, if you can live with some
insecurity, you can always put a key in the registry
of the sole machine and in the Aut

pen macro, check
for the key - if not there, immediately close out.
Anyone can mess with the registry settings, so this is
not foolproof.
the code to set, retrieve, and delete values:
Sub SetReg()
' Place some settings in the registry.
SaveSetting appname:="TestApp", section:="Startup", _
key:="Top", setting:=75
SaveSetting "TestApp", "Startup", "Left", 50
End Sub
Sub getSettings()
Dim MySettings As Variant, intSettings As Integer
MySettings = GetAllSettings(appname:="TestApp",
section:="Startup")
For intSettings = LBound(MySettings, 1) To UBound
(MySettings, 1)
Debug.Print MySettings(intSettings, 0), MySettings
(intSettings, 1)
Next intSettings
End Sub
Sub deletesettings()
' Remove section and all its settings from registry.
DeleteSetting "TestApp", "Startup"
End Sub
The values 50 and 75 are set in [HKEY_USERS]-Software-
VB and VBA Program Settings
good luck,
jeff