Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有 VBA 可以搜索红色字体并采取行动。
VBA 2007 不喜欢这种语法:
With myRg.Find .Font.ColorIndex <> wdBlack
我可以搜索非黑色或任何not标准吗?
not
显然您希望做的事情无法完成,但这种解决方法可能会引起您的兴趣:http ://www.tech-archive.net/Archive/Word/microsoft.public.word.vba.beginners/2005-12/ msg00012.html