打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
100.选取当前工作表中公式出错的单元格,关返回出错个数。

'###############################################################

'函数作用:选取当前工作表中公式出错的单元格﹐关返回出错个数

'###############################################################

Public Function FormulaErrors() As Long

    If MsgBox("Do you want select cells with an error in their formula ?", _

              vbQuestion + vbOKCancel, AT) = vbCancel Then Exit Function On Error GoTo Er:

    Cells.SpecialCells(xlCellTypeFormulas, 16).Select

    MsgBox "Cells with an error are selected.", vbInformation, "Formula"

    FormulaErrors = Selection.Count

    Exit Function Er:

    MsgBox "There are no cells with an error on this sheet.", vbInformation, "Formula"

    FormulaErrors = 0

End Function

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
完全手册Excel VBA典型实例大全:通过368个例子掌握
Excel中各种VBA写法 - 彷徨......豁然开朗 - 博客园
VBA基础16--单元格查找
excel vba常见问题解答
Excel VBA] 认识VBA过程及开发自定义函数
[转贴]VBA自学收集资料(三)
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服