I need to check if a string is in the name of the style of the selected text. For example if Selection.Range.Style contains “stylename”, then I need to perform some actions. The style name may not be exactly what I am looking for. It could equal “stylename” or it may also be “stylename_1” or “stylename_2” etc.
I have tried a few things, but with no success. It has been a while since I have worked in VBA. Can you help?
Thanks!!
Troy