Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I know you can protect a macro by selecting Tools-VBAProject
Properties-Protection in VBA but you have to do this manually. Is it possible to password protect a macro by running another macro? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You could just ask for a password right at the top:
Option Explicit sub testme dim myPwd as string dim pwd as string myPwd = "topSeCrEt" pwd = inputbox(prompt:="What's the frequency, Kenneth?") if pwd < mypwd then beep exit sub end if 'rest of code end sub mcphc wrote: I know you can protect a macro by selecting Tools-VBAProject Properties-Protection in VBA but you have to do this manually. Is it possible to password protect a macro by running another macro? -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Password Protect Macro | Excel Programming | |||
password protect macro | Excel Programming | |||
Password Protect Macro? | Excel Programming | |||
Password Protect Running of Macro | Excel Programming | |||
Password protect macro | Excel Programming |