I’d like to take a Range.Find object and reset its .Style property to an empty string while retaining any other property settings that may be in effect (which rules out .ClearFormatting). The .Find.Style property for a fresh Range is an empty string (or at least .Find.Style = “” evaluates to True), but none of the following lines seems to work. (They all trigger errors along the lines of “Item with specified name doesn’t exist” or “Subscript out of range.”)
rngX.Find.Style = “”
rngX.Find.Style = vbNullString
rngX.Find.Style = 0
rngX.Find.Style = Nothing
rngX.Find.Style = Empty
rngX.Find.Style.Reset
This 2-line variation also fails:
Selection.Find.ClearFormatting
rngX.Find.Style = Selection.Find.Style
Adding the word Set also fails. (“Object required.”)
Anybody know how to reset a .Find.Style?
An unattractive workaround may be to create a new range and set all its properties (other than .Find.Style) to match those of the existing range. Avoiding this would be a good thing.