View Single Post
 
Old 09-16-2021, 04:06 PM
bigjoec bigjoec is offline Windows 10 Office 2019
Novice
 
Join Date: Sep 2021
Posts: 3
bigjoec is on a distinguished road
Default Add space after every contiguous block of 8-point text

Hi,

I have a document with various fonts and point sizes. After every block of 8-point text (which corresponds to page numbers in a janky fake header, fwiw) I need to add a space. For, reasons.

Thought I could do this with find/replace, but I don't think it works that way. That is, appears it looks at the formatting AFTER doing the regex matching, and not looking at the format matching and then doing the regex. Or something like that, I'm out of my depth here.

There's probably a simple looping approach that can identify blocks of same-formatted text, but I wrote my first Word macro 15 minutes ago and it's not immediately obvious to me.

Thanks!
Reply With Quote