
电脑
2、进入宏后,点击插入模块。
3、点击插入模块后,输入代码Function SUMColor(rag1 As Range, rag2 As Range)Application.VolatileFor Each i In rag2If i.Interior.ColorIndex = rag1.Interior.ColorIndex ThenSUMColor = SUMColor + 1End IfNextEnd Function。

excel
5、然后按回车就可以了。
Copyright © 2025 IZhiDa.com All Rights Reserved.
知答 版权所有 粤ICP备2023042255号