Hello Friends,
I want to run the below VBA code with a shortcut key CTRL +q which I can if the sub is not Private
Can somebody please let me know how to make it run with a shortcut key if I set it to private (if possible) ?
Regards,
Humayun
I want to run the below VBA code with a shortcut key CTRL +q which I can if the sub is not Private
Can somebody please let me know how to make it run with a shortcut key if I set it to private (if possible) ?
VBA Code:
Private Sub unlockactivesheet()
If Sheets("INDEX").Range("A1") = "HUMAYUN-LAPTOP1N4CT93" Then
ActiveSheet.Unprotect Password:="merchant"
ActiveWindow.DisplayHeadings = True
End If
End Sub
Regards,
Humayun