below macro deletes a user-defined style using the OrganizierDelete method.
I have got a document with SEVERAL user-defined styles that all begin with A SPACE. For some specific reason I would like to delete All these user-defined styles beginning with a space.
How am I to change below code to achieve what I want?
Help is much appreciated. Thank you very much in advance.
Dim strName As String
Dim strSource As String
Dim intObject As Integer
strName = " UserDefinedStyle"
strSource = ActiveDocument.FullName
intObject = wdOrganizerObjectStyles