appreciate you reading this post. I'm sure this is a simple one, but I'm new to VBA coding.
I've got a list of words between cell D23:D52 in a spreadsheet that are all separated by a hyphen. IE: "word1 word2 - word3 word4" I'd like to format the words to the left of the hyphen as BOLD and the words to the right of the hyphen as ITALICS like this: "word1 word2 - word3 word4"
I can only figure out how to either italicize every word or make every word bold. I figure there has to be a way to split the words into italics and bold using the hyphen as a delimiter.
Is there a code that would help me achieve this goal?
Thanks!
Please try.
Microsoft documentation: