I have a Word document whose font size is 14 and 18 and the document is 1,500 pages.
I need to make specific changes to font 14 and font 18, and so after searching I came across VBA for Word, which would allow me to do this easily.
Since I had never done VBA before, I tried this:
Sub tryIt() If Selection.Font.Size = 18 Then MsgBox ("test") End If End Sub
But that will not work ... msgbox () just to find out if it recognized the text correctly.
So, how can I split / delimit the font size of 14 and 18 in a Word document and implement this in a vb script?
Is there a way to extract text in sizes 14 and 18 or look for it so that I can find / replace?
source share