问题
A helpful SO member highlighted here how to use the .Font.Highlight
property of TextRange2
in PowerPoint to add a highlight to selected text; however I haven't been able to fathom how to remove the highlight from within VB.
In particular either of the following...
ActiveWindow.Selection.TextRange2.Font.Highlight.RGB = 0
OR
ActiveWindow.Selection.TextRange2.Font.Highlight = 0
...result in black highlighting instead of no highlighting. Using False
or msoFalse
in place of the zeros has the same effect. There doesn't seem to be any kind of boolean switch to actually turn highlighting on or off (as there is in Word) and there is no supporting documentation of any kind to be found. Could anyone help with this please?
Many thanks!
来源:https://stackoverflow.com/questions/60614685/vba-powerpoint-how-to-un-highlight-selected-text