Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-24-2021, 07:36 PM
jec1 jec1 is offline Trying to uncheck Limit formatting to permitted styles in Word document Windows 7 32bit Trying to uncheck Limit formatting to permitted styles in Word document Office 2013
Advanced Beginner
Trying to uncheck Limit formatting to permitted styles in Word document
 
Join Date: Jan 2012
Posts: 84
jec1 is on a distinguished road
Default 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
Reply With Quote
 



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
Trying to uncheck Limit formatting to permitted styles in Word document Uncheck Checkbox Code not working if document protected bandrist Word VBA 2 08-14-2013 09:02 AM
Trying to uncheck Limit formatting to permitted styles in Word document Word Documents Losing Formatting/Styles When Reopened jleary Word 2 02-05-2013 12:27 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:18 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft