WorksheetFunction.EncodeUrl method (Excel)

URL encodes the argument.

Syntax

expression.EncodeUrl (Arg1)

expression A variable that represents a WorksheetFunction object.

Parameters

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

Return value

Variant

Remarks

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.