WorksheetFunction.EncodeUrl method (Excel)

URL encodes the argument.


expression.EncodeUrl (Arg1)

expression A variable that represents a WorksheetFunction object.


Name Required/Optional Data type Description
Arg1 Required String Text to be encoded.

Return value



This method enables the referencing of other cells as arguments into the Web Service URL, as this will ensure that the data will be URL encoded.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.