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