VBA Powerpoint - How to *un* highlight selected text

你离开我真会死。 提交于 2020-05-31 04:03:11

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!