Hi
The code you gave for inserting parentheses before and after each word in a file works great.
What modification would the code need if I want it to apply to only that text in the document which is font size 20. Then the code should turn all the parentheses it just added as red and the words inside the parentheses as red?
To understand, please see the example below. Note: I couldn't see the tool to show the variation in font size for my post, so assume that the bold represents font size 20.
ORIGINAL SAMPLE
Tim is a computer wiz kid
RESULT AFTER RUNNING CURRENT CODE
Tim is a computer wiz kid
(Tim) (is) (a) (computer) (wiz) (kid)
DESIRED RESULT
Tim is a computer wiz kid
Tim is a (computer) wiz kid
Last edited by Singh_Edm; 09-19-2014 at 03:35 PM.
Reason: Elaborated question.
|