D
DJ
Can you make a user enter a password before a macro will run, and if so how. I have tried everything I could think of but am not well-versed in VB. Thanks for your help.
tried everything I could think of but am not well-versed in VB. Thanks for your help.DJ said:Can you make a user enter a password before a macro will run, and if so how. I have
will run, and if so how. I have-----Original Message-----
In its simplest form:
Sub test()
Dim PW As String
PW = "Janet"
If InputBox("Password") <> PW Then Exit Sub
'Macro code here, like:
MsgBox "Thank you for choosing Linux Redhat", _
vbInformation, "Installation complete"
End Sub