How can I URL encode a string in Excel VBA?

后端 未结 15 2203
闹比i
闹比i 2020-11-22 11:39

Is there a built-in way to URL encode a string in Excel VBA or do I need to hand roll this functionality?

15条回答
  •  -上瘾入骨i
    2020-11-22 12:05

    The VBA-tools library has a function for that:

    http://vba-tools.github.io/VBA-Web/docs/#/WebHelpers/UrlEncode

    It seems to work similar to encodeURIComponent() in JavaScript.

提交回复
热议问题