分享

EXCEL自定义函数​

 lib_kun 2020-04-12

合并函数

Public Function hebin(ll, ParamArray x())

    For Each r In x

        If IsArray(r) Then

            For Each rr In r

                If rr <> "" Then mystr = mystr & ll & rr

            Next

        Else

            mystr = mystr & ll & r

        End If

    Next

    mystr = Mid$(mystr, 2, Len(mystr))

End Function

'将时间戳(10或13位整数)转换成 yyyy-mm-dd hh:mm:ss 格式的日期
Public Function shijiancuo(timeStamp As Double, Optional beginDate = "01/01/1970 08:00:00")
  If Len(CStr(timeStamp)) = 13 Then timeStamp = timeStamp / 1000
  timeStamp2date = DateAdd("s", timeStamp, beginDate)
End Function

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多