Trying to create a new style from a shape:
ActiveDocument.StyleSheet.CreateStyleFromShape ActiveSelectionRange.FirstShape, "character"
But this code causes error 'Cannot create empty styles'.
Also, why CreateStyleFromShape returns Styles but not a Style?
Sancho said: Trying to create a new style from a shape: ActiveDocument.StyleSheet.CreateStyleFromShape ActiveSelectionRange.FirstShape, "character" But this code causes error 'Cannot create empty styles'.
When I use this to create a style from a shape - in the cases where there is no error - then the newly-created style is applied to that shape.