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?
|