如何使用VBA检测条件格式的结果? [英] How can I detect the results of Conditional Formating using VBA?

查看:350
本文介绍了如何使用VBA检测条件格式的结果?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Excel文件,该文件已设置了条件格式,以将检查或x放在单元格中。我该如何创建一个if语句,而不使用原始条件公式来检测其中的内容?

I have an excel file that has conditional formating set up to put a check or an x in a cell. How can I create an if statement that will detect which is in there without using the original conditioning formulas?

推荐答案

自制函数来检查条件是否满足: http://www.cpearson.com/excel/CFColors .htm

You can use this homemade function to check if condition is filled: http://www.cpearson.com/excel/CFColors.htm

这篇关于如何使用VBA检测条件格式的结果?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆