开发者

Find using NOT Criteria

I have VBA that searches for a fon开发者_运维技巧t that is colored red, and takes action.

VBA 2007 does not like this syntax:

With myRg.Find
      .Font.ColorIndex <> wdBlack

Can I search for NON-black or any not criteria?


Apparently what you wish to do cannot be done, but this work-around may be of interest: http://www.tech-archive.net/Archive/Word/microsoft.public.word.vba.beginners/2005-12/msg00012.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜