开发者

Find using NOT Criteria

开发者 https://www.devze.com 2023-02-04 15:37 出处:网络
I have VBA that searches for a fon开发者_运维技巧t that is colored red, and takes action. VBA 2007 does not like this syntax:

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

精彩评论

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

关注公众号