macros in a protected document

T

Tiah Peterson

I am trying to run a macro in specific fields of a protected document. I
want to use macros because I have a variety of things I need to say often
enough that I don't want to retype them over and over. But at the same time,
there is enough variety in what I need to say, that drop downs won't work
either.

I have set up my macro, and when I try to run it I get the following error:

Run Time Error "4605". This method or property is not available because the
object refers to a protected area of the document.

In going to the Debugger this is what is shown:

Sub Bein()
'
' Bein Macro
' Macro recorded 3/19/2007 by DHS-OIS-NDS
'
CommandBars("Stop Recording").Visible = False
Selection.EscapeKey
End Su
-------------------------------------------------------------------------------------------------
Sub BeinScreen()
'With ActiveDocument
' BeinScreen Macro
' for RI template
'
Selection.TypeText Text:="- verified by viewing BEIN Screen."
End Sub

How can I get the marcos to run in the protected document. And if that is
not possible, how can I turn off the protection with keystrokes (if that is
possible)?

Thanks.

Tiah Peterson
 
Top