Is there a built-in way to URL encode a string in Excel VBA or do I need to hand roll this functionality?
If you also want it to work on MacOs create a seperate function
Function macUriEncode(value As String) As String
Dim script As String
script = "do shell script " & """/usr/bin/python -c 'import sys, urllib; print urllib.quote(sys.argv[1])' """ & Chr(38) & " quoted form of """ & value & """"
macUriEncode = MacScript(script)
End Function