I've protected an excel sheet with a password. I know the old value and have successfully unprotected it to run some macro on the form.
I now want to be able to change the password in vb from the old value to the new.
How do I check the value of the current password to see if it's the old one or the new one?
I know how to protect and unprotect using the ActiveSheet. Protect.Password but do not know how to do an IF statement to see which one it is.
thanks
I now want to be able to change the password in vb from the old value to the new.
How do I check the value of the current password to see if it's the old one or the new one?
I know how to protect and unprotect using the ActiveSheet. Protect.Password but do not know how to do an IF statement to see which one it is.
thanks