B
Brian Ferris
Hi there,
I have a series of steps in a macro which is in turn
assigned to a command button.
I would like the last step to be protecting the workbook
however with a given password. Is there some way i can
write the password in the macro.
The whole idea is that when pressing he button , the first
thing would involve unprotecting the sheet, but I would
like the user to be prompted for a password to unprotect
at this stage. this can only be done by entering the
password when protecting the workbook in the first place.
The reason for unprotecting and protecting back again at
the end is that the macro can not run on a protected
sheet...
Any suggestions...
Thanks in advance..
Brian
I have a series of steps in a macro which is in turn
assigned to a command button.
I would like the last step to be protecting the workbook
however with a given password. Is there some way i can
write the password in the macro.
The whole idea is that when pressing he button , the first
thing would involve unprotecting the sheet, but I would
like the user to be prompted for a password to unprotect
at this stage. this can only be done by entering the
password when protecting the workbook in the first place.
The reason for unprotecting and protecting back again at
the end is that the macro can not run on a protected
sheet...
Any suggestions...
Thanks in advance..
Brian