View Single Post
 
Old 12-02-2020, 03:31 PM
kae0088 kae0088 is offline Windows 7 64bit Office 2010 32bit
Novice
 
Join Date: May 2012
Location: Melbourne, Australia
Posts: 20
kae0088 is on a distinguished road
Default Deleting styles in Word2016-32 bit version

I have a document that uses a number of custom styles as well as having a number of unused custom styles. I am trying to delete unused styles. When I delete a style that has an outline level, strange things happen. Paragraphs that have custom styles suddenly have a different style applied. It occurs with either of the statements:

ActiveDocument.Styles("MyStyle").Delete
or,
Application.OrganizerDelete Source:=ActiveDocument.FullName, _
Name:="MyStyle", Object:=wdOrganizerObjectStyles

The effect only occurs with Word 2016 32 bit version. It does not occur with Word 2016 64 bit version or Word 2010.There is no other styles based on these styles.

Has anyone an idea what is happening?
Reply With Quote