Can anyone explain to me why the following VBA code:
Function UserFunc(Whatever As Variant)
ActiveSheet.Unprotect
End Function
works properly in Excel (i.e. unprotects the non-password-protected active sheet) when called from a form control button-click that calls a VBA Sub that invokes the function; but DOES NOT unprotect the same sheet when invoked by a formula such as "=UserFunc(B3)" on the same sheet?
Thanks,
cw