View Single Post
 
Old 06-13-2017, 12:10 PM
Tech2 Tech2 is offline Windows 7 64bit Office 2010 64bit
Novice
 
Join Date: Feb 2015
Posts: 3
Tech2 is on a distinguished road
Default Command Button Password

How can I execute this Module when the user clicks the 'Command Button' ?

The Command Button will become active when the user enters the password and follow the link included in the Control.

Private Sub Password()
Answer = InputBox("Enter Password")
If Answer = ("$") Then
ThisDocument.CommandButton12.Enabled = True
Else
ThisDocument.CommandButton12.Enabled = False
End If
End Sub
Private Sub ActiveDocument_Activate()
ThisDocument.CommandButton12.Enabled = False
Password
End Sub

Thanks
Reply With Quote