View Single Post
  #1   Report Post  
kimajac kimajac is offline
Junior Member
 
Posts: 0
Default Macro will not unlock form

I have assigned a macro to a button on the quick access toolbar. When I run the macro by pressing the button, the code:
Activedocument.unprotect
will not execute if the form is locked. The macro stops at that point

If I run the code in VB editor it works fine. If I step through the macro everything works fine as well. I have searched the web and can fine nothing to explain the reason for the problem. The project is digitally signed.

Thanks