![]() |
#1
|
|||
|
|||
![]()
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 |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
derajlance | Word VBA | 6 | 05-05-2016 07:40 AM |
Help with a Command Button | dkohnken | Word VBA | 5 | 03-18-2015 10:13 PM |
command button query | smalc | Word VBA | 2 | 03-16-2015 08:26 PM |
Command Button | knp11 | PowerPoint | 2 | 01-18-2015 01:41 PM |
![]() |
cksm4 | Word VBA | 7 | 02-27-2011 08:47 PM |