查看: 32  |  回复: 0
  VBA代码 执行js 解决64位office执行js的问题
楼主
发表于 2025年3月18日 14:59
Function EvalByHtml(strText As String) As String
    '解决64位office执行js的问题
    With CreateObject("htmlfile")
        .write "<html><script></script></html>"
        EvalByHtml = CallByName(.parentwindow, "eval", VbMethod, strText)
    End With
End Function


您需要登录后才可以回帖 登录 | 立即注册
【本版规则】请勿发表违反国家法律的内容,否则会被冻结账号和删贴。
用户名: 立即注册
密码:
2020-2025 MaNongKu.com