View Single Post
 
Old 03-01-2018, 02:23 PM
jtwite jtwite is offline Windows 10 Office 2010 64bit
Novice
 
Join Date: Mar 2018
Posts: 6
jtwite is on a distinguished road
Default Macro to protect document leaves brackets where the cursor is

Hello,

I have a issue that I just cannot find an answer to. I have some macros set up to protect a document in track changes and to protect a document for filling in forms. I activate the macro using a keyboard combination. The macros work fine, but wherever my cursor is when I hit the keyboard combination it leave a gray bar, or brackets if you type anything. Here is the code that I am using:

Sub Fillable ()
'

'Fillable Macro
'
Selection.Editors.Add wdEditorEveryone
ActiveDocument.Protect Password:="", Type:=_
wdAllowOnlyFormFields

End Sub

Any help would be greatly appreciated.
Reply With Quote