Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How can one search & replace direct formatting with styles?

I understand how to use Find/Replace to grab things based on text and even specific formatting conditions, as well, but not how to find specific formatting and apply an existing style. I have a number of documents that I'd like to repair the formatting in by switching them to styles.

They are consistently formatted. If I could search for a specific combination of font, text color, and size, and apply a selected style, I'd be done swiftly.

A workaround in Word would be a simple little macro in VB to apply the formatting per, but I can't get custom macros working worth a hang in LO, either, so I'm kinda stuck with doing this manually or fiddling around in the XML, which isn't going to hot... or going back to the dark side, I suppose.

Options? Thoughts?

How can one search & replace direct formatting with styles?

I understand how to use Find/Replace to grab things based on text and even specific formatting conditions, as well, but not how to find specific formatting and apply an existing style. I have a number of documents that I'd like to repair the formatting in by switching them to styles.

They are consistently formatted. If I could search for a specific combination of font, text color, and size, and apply a selected style, I'd be done swiftly.

A workaround in Word would be a simple little macro in VB to apply the formatting per, but I can't get custom macros working worth a hang in LO, either, so I'm kinda stuck with doing this manually or fiddling around in the XML, which isn't going to hot... or going back to the dark side, I suppose.

Options? Thoughts?