Dim text As String = "123一二三" Dim ScriptControl As Object, data As Object, JscriptCode As String JscriptCode = "function toUrl() {return encodeURI('" & text & "')}" ScriptControl = CreateObject("MSScriptControl.ScriptControl") With ScriptControl .Language = "Javascript" .Timeout = -1 .AddCode(JscriptCode) text = .Run("toUrl") End With