Reply
 
Thread Tools Display Modes
  #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
  #2   Report Post  
kimajac kimajac is offline
Junior Member
 
Posts: 0
Default

Quote:
Originally Posted by kimajac View Post
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
Strange Fix. I inserted a new module in vba editor and copied the code to the new module. The macro performs as it should when run from the qat. There must be something during the upgrade from 2003 to 2007 that causes this issue. Any insight would be appreciated.
Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to Unlock a Locked Word 2007 Document WordWorker Microsoft Word Help 7 January 12th 11 03:55 AM
macro to unlock and copy form... for dummies please Noetic76 Microsoft Word Help 2 August 21st 09 05:15 AM
Spell Check a protected Form with a Macro & already have forms picture macro [email protected] Microsoft Word Help 2 October 25th 07 04:11 PM
Unlock a Form AJ Microsoft Word Help 1 July 20th 07 07:53 PM
How do I unlock a macro project Wordwobble Microsoft Word Help 2 December 20th 04 04:59 PM


All times are GMT +1. The time now is 03:17 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"