最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

libreoffice calc - BASIC runtime error, argument is not optional - Stack Overflow

programmeradmin2浏览0评论

I'm trying to write a basic function to check if the text in a cell is bolded, but I keep getting the mentioned runtime error on the second line. I've looked up various documentations and tried other permutations of this code including declaring V as a variant, object etc... I'm still not sure what's wrong.

Image for reference

Function IsBold(V)

    If V.CharWeight = com.sun.star.awt.FontWeight.BOLD Then
        IsBold = "TRUE"
    Else
        IsBold = "FALSE"
    End If
    
End Function
发布评论

评论列表(0)

  1. 暂无评论