D
#DIV/0
Is there a way to loop through all styles in a specific doc or template and
copy them to another (doc or template) based on the fact that the style name
begins with, for example "MVP" ?
There's an example in the Help for OrganizerCopy that searches for a
specific style name:
Dim styleLoop As Style
For Each styleLoop In ActiveDocument.Styles
If styleLoop = "SubText" Then
Application.OrganizerCopy Source:=ActiveDocument.Name, _
Destination:="C:\Templates\Template1.dot", _
Name:="SubText", _
Object:=wdOrganizerObjectStyles
End If
Next styleLoop
Referencing the source and destination files is no problem but what can I
use to replace "SubText" with something like "MVP*" as the style name ?
copy them to another (doc or template) based on the fact that the style name
begins with, for example "MVP" ?
There's an example in the Help for OrganizerCopy that searches for a
specific style name:
Dim styleLoop As Style
For Each styleLoop In ActiveDocument.Styles
If styleLoop = "SubText" Then
Application.OrganizerCopy Source:=ActiveDocument.Name, _
Destination:="C:\Templates\Template1.dot", _
Name:="SubText", _
Object:=wdOrganizerObjectStyles
End If
Next styleLoop
Referencing the source and destination files is no problem but what can I
use to replace "SubText" with something like "MVP*" as the style name ?