View Single Post
 
Old 10-29-2014, 08:32 AM
tne22727 tne22727 is offline Windows 7 64bit Office 2010 64bit
Novice
 
Join Date: Oct 2014
Posts: 1
tne22727 is on a distinguished road
Default Restricted editing disables macro

I created a template with a text field and a form field. I created a macro so the user could hide and unhide the data in the form field however when I restrict editing the macro disappears and says "the requested member of the collection does not exist. Below is the VB. I am also saving as a macro enables template.

Sub MYMACRO()
ActiveDocument.Bookmarks("TextToShow").Range.Font. Hidden = Not ActiveDocument.Bookmarks("TextToShow").Range.Font. Hidden
End Sub
Reply With Quote