P
PCLIVE
Does anyone know how I can do this?
I know this is a little unorthodox, but I currently have a macro that
will unprotect a workbook including a password. The line is as follows:
ActiveWorkbook.Unprotect (password)
I also want a macro that will do just the opposite, including the password.
Is this possible? I've tried the following with no luck.
ActiveWorkbook.Protect (password), Structure:=True, Windows:=True
Thanks,
Paul
I know this is a little unorthodox, but I currently have a macro that
will unprotect a workbook including a password. The line is as follows:
ActiveWorkbook.Unprotect (password)
I also want a macro that will do just the opposite, including the password.
Is this possible? I've tried the following with no luck.
ActiveWorkbook.Protect (password), Structure:=True, Windows:=True
Thanks,
Paul