D
Dennis
Using XL 2003
First, After successfully running a macro, my WS ends up being protected.
I cannot understand why that happens as, in this particular Sub Routine, there is no
command applying protection.
Yes, I can add to my current macro:
ActiveSheet.Unprotect
and that works! But why does it become protected in the first place?
Because of the above, I would like to "test" for protection status.
If WS protection is True, then I want to apply:
Active.Sheet.Protect UserInterfaceOnly:=True
so that the Macro will complete
I tried:
If ActiveSheet.Protect = True
but it does not seem to do what I want.
Then I wish to leave the WS protection exactly as it was before the macro was run.
TIA Dennis
First, After successfully running a macro, my WS ends up being protected.
I cannot understand why that happens as, in this particular Sub Routine, there is no
command applying protection.
Yes, I can add to my current macro:
ActiveSheet.Unprotect
and that works! But why does it become protected in the first place?
Because of the above, I would like to "test" for protection status.
If WS protection is True, then I want to apply:
Active.Sheet.Protect UserInterfaceOnly:=True
so that the Macro will complete
I tried:
If ActiveSheet.Protect = True
but it does not seem to do what I want.
Then I wish to leave the WS protection exactly as it was before the macro was run.
TIA Dennis