How to highlight lines containing specific words
I have a journal of several years in text format that I'd like to convert to a document, format, and create a print-on-demand book. Individual entries start with lines such as:
Friday, June 12th, 2015
I'd like to write (or preferably, find!) a macro that can search for a pair of strings (e.g, "Monday" && "2015", "Tuesday" && "2015", etc.) and bold that entire line, so it looks like this:
Friday, June 12th, 2015
and maybe in a bigger font.
So in short: either seven macros (for each day of the week) or better, one macro that will look for lines that match words from a pair of lists (("Monday", "Tuesday", "Wednesday", etc.) && ("2000", "2001", "2002", etc.)) and then bold and increase font size.
I'm by no means an expert with RegEx, but I'm a little familiar with the concept. I'm using Word 2000, though I have 2010 if necessary.
Any help? Thanks!
|