Bewerken

Delen via


WorksheetFunction.Replace(String, Double, Double, String) Method

Definition

Replaces part of a text string, based on the number of characters you specify, with a different text string.

public:
 System::String ^ Replace(System::String ^ Arg1, double Arg2, double Arg3, System::String ^ Arg4);
public string Replace (string Arg1, double Arg2, double Arg3, string Arg4);
Public Function Replace (Arg1 As String, Arg2 As Double, Arg3 As Double, Arg4 As String) As String

Parameters

Arg1
String

Text in which you want to replace some characters.

Arg2
Double

The position of the character in Arg1 that you want to replace with Arg4.

Arg3
Double

The number of characters in Arg1 that you want the Replace(String, Double, Double, String) method to replace with Arg4.

Arg4
String

Text that will replace characters in Arg1.

Returns

Applies to