#1
|
|||
|
|||
Trying to uncheck Limit formatting to permitted styles in Word document
Hi,
The below macros works fine - but when I try to uncheck Limit formatting to permitted styles Runtime error 5 - Debug CommandBars("Restrict Editing").Visible = False does not work - any ideas please? Sub AttachUCPRStyles1() ‘Call jec_StylesHide With ActiveDocument .UpdateStylesOnOpen = True .AttachedTemplate = "C:\Users\janin\AppData\Roaming\Microsoft\Template s\UCPR v1.dotx" .UpdateStylesOnOpen = False .AttachedTemplate = "Normal" End With CommandBars("Restrict Editing").Visible = False ‘Call SetStylesPaneToAllAlphabetical End Sub |
#2
|
||||
|
||||
How about
Code:
ActiveDocument.Unprotect
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
#3
|
|||
|
|||
Hi Graham
No, it does not uncheck Limit formatting... There is no password on these forms they come in from service providers and need some cleaning up. Thank you. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Remove Styles in Word 2016 without removing formatting | stm27 | Word | 5 | 11-16-2016 12:49 PM |
Single step Word Styles from Source Document through entire Destination document? | xbliss | Word | 6 | 08-27-2016 09:36 PM |
document styles and some formatting doesn't appear where should when different people view document | Dilbert fan | Word | 1 | 08-23-2015 05:07 AM |
Uncheck Checkbox Code not working if document protected | bandrist | Word VBA | 2 | 08-14-2013 09:02 AM |
Word Documents Losing Formatting/Styles When Reopened | jleary | Word | 2 | 02-05-2013 12:27 PM |