自定义了一个EXCEL函数,但不自动更新

excel

1个回答

写回答

12345614

2025-09-09 00:40

+ 关注

Function sumcolor(rng1 As Range, rng2 As Range) As Single*.volatileDim cell As Rangesumcolor = 0For Each cell In rng1If cell.*.color = rng2.***.color Then sumcolor = sumcolor + 1Next cellEnd Function这样就可以了!追问 : Application.Volatile增加了这一句,我试过。把一个单元格的字体设置成红色后,后面调用自定义的函数的公式没变化,但用格式刷刷会变。

举报有用(4分享收藏

Copyright © 2025 IZhiDa.com All Rights Reserved.

知答 版权所有 粤ICP备2023042255号