I'm working with older Corel documents. Some are many pages. The drawings have maybe over 100 object styles within them. Is there a way to remove all of them without creating a new document and copying the drawings? I can't import because all of the styles come back. Thanks.
ruckstande said:The drawings have maybe over 100 object styles within them. Is there a way to remove all of them without creating a new document and copying the drawings?
You could try using macros:
Sub delete_all_styles() Dim styleThis As Style For Each styleThis In ActiveDocument.StyleSheet.Styles styleThis.Delete Next styleThis End Sub Sub delete_all_stylesets() Dim stylesetThis As Style For Each stylesetThis In ActiveDocument.StyleSheet.StyleSets stylesetThis.Delete Next stylesetThis End Sub
Those would go after, respectively, top-level styles and top-level style sets in the document.
I don't know if this is what I tried before but I did attempt to run a macro and it crashed my Corel.
"Well believe me, Mike, I calculated the odds of this succeeding versus the odds I was doing something incredibly stupid... and I went ahead anyway."