I want to be able to automatically change the font size of the spaces between words of a selected line, but not the font size of the words themselves. So instead of this:
... I wanted to get this:
... and then change the font size of this spacing, always with ‘0.5pt’ less, so for example from ‘9pt’ to ‘8.5pt’.
Someone suggested to record a macro while doing the following:
The problem however, is that it doesn't only change the font of the selected line, but also of all the other lines, or of that line and all the previous/next lines. I’m getting the following code:- Highlight the sentence(s)
- Open FIND & REPLACE (e.g. CTRL + H)
- Add one space to the FIND field
- Add one space to the REPLACE field
- With the cursor still in the REPLACE field, go to "More" >> "Format" >> "Font", select the required font size of the space and click "OK"
- Click "Replace All"
Look into recording macros. You could record 3 macros. Each one would do the steps mentioned above (spart ftom highlighting the text) to select the 3 required font size for the space and to run the replace all command. Then, these macros could be assigned toolbar buttons or keyboard shortcuts. After setting these up, you would just need to highlight the text and run the macro for the required space font size.
Is there someone who could tweak this so it will end up only affecting the selected line? Thank you so much in advance, you’ll be a lifesaver.Sub Macro1() ' ' Macro1 Macro ' ' Selection.Find.ClearFormatting Selection.Find.Replacement.ClearFormatting Selection.Find.Replacement.Font.Size = 8.5 With Selection.Find .Text = " " .Replacement.Text = " " .Forward = False .Wrap = wdFindAsk .Format = True .MatchCase = False .MatchWholeWord = False .MatchWildcards = False .MatchSoundsLike = False .MatchAllWordForms = False End With Selection.Find.Execute Replace:=wdReplaceAll End Sub
Note: apparently I'm not the first one with a similar problem. There is an entire website by Greg Maxey that handles the '.Find' option. But I'm still asking the question on this forum because English isn't my first language and I don't know sh*t about coding. So I'm hoping that someone here can help me further with just a couple of tweaks instead of me spending hours of trying to figure it out and probably get nowhere. And I know this because I've already asked it on Reddit and someone seems to have posted something that could help me further and although I'm very greatful, it reads like Chinese to me. And that - unfortunately - isn’t my first language either.